[jboss-dev-forums] [PicketBox Development] - Re: LoginModule defined with cached=true, but called between web and ejb container

Patrick Garner do-not-reply at jboss.com
Tue Nov 6 16:53:37 EST 2012


Patrick Garner [https://community.jboss.org/people/pgarner] created the discussion

"Re: LoginModule defined with cached=true, but called between web and ejb container"

To view the discussion, visit: https://community.jboss.org/message/775210#775210

--------------------------------------------------------------
I think the problem is that SessionManager#logout (which programmatically logs out the user e.g. HttpServletRequest#logout)) is invoked before invoking LoginHistoryService#create.  SessionManager is a CDI bean and LoginHistoryService is SLSB.  I think the "Invalid User" is a result of logout removing the principal prior to invoking create on the SLSB.

I'm looking into it, but want to let you know now what I think the problem is before you waste time on this.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/775210#775210]

Start a new discussion in PicketBox Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2088]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20121106/e7d436cf/attachment.html 


More information about the jboss-dev-forums mailing list