Hi, I integrated Apache Shiro with dropwizard and Jersey, everything looks fine until I try to use session.
When I use commands: Subject currentUser = SecurityUtils.getSubject(); It returns an object with null sessionId and not autenticated regardless usesr login or not. The next command: Session session = currentUser.getSession(); it gives me java.lang.illegalstateexception. I though it might be related to login. Originally I login with this way: // AuthenticationInfo authInfo = SecurityUtils.getSecurityManager().authenticate(token); It's successful and return back to caller function. Since I got above session error and I suspect it might be related to login, then I change login to this: currentUser.login( token ); In debug mode I saw all the function calls for authentication are the same with SecurityUtils.getSecurityManager().authenticate method but currentUser.login( token ) never return back to caller function. Would you please help on how to fix these? Thanks, Wendy -- View this message in context: http://shiro-user.582556.n2.nabble.com/About-login-and-session-tp7580038.html Sent from the Shiro User mailing list archive at Nabble.com.
