shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nitincn <niti...@gmail.com>
Subject Re: Not ale to get the Subject second time after authentication.
Date Mon, 19 Mar 2018 16:11:15 GMT
Hi Brian,

Thanks for heads up.

I have added Session Id got from shiro auth provider as cookie to request
header.

HttpGet getmethod = new
HttpGet("http://localhost:8080/shiroauthproviderapp/auth/getalluser");

getmethod .setHeader("Authorization", "bearer " + _session_id); //not
necessary
getmethod .setHeader("Cookie", "keymanager=" + _session_id); // JSESSIONID

And modified Shiro.INI -

cookie = org.apache.shiro.web.servlet.SimpleCookie
cookie.name = keymanager
sessionManager.sessionIdCookie = $cookie

So, now I'm able get the Subject and permission lists.

Please let me know if I'm wrong.

Thanks




--
Sent from: http://shiro-developer.582600.n2.nabble.com/

Mime
View raw message