-
1. Re: How to get httprequest?
dva Jul 25, 2011 12:04 AM (in response to dva)No one has ideas of how to access information on the current HTTP-request from JAAS Custom Login Module?
-
2. Re: How to get httprequest?
didier2011 Oct 11, 2011 7:40 AM (in response to dva)I also need the HttpServletRequest in the login module, is this a bug or is there another way to retrieve it?
-
3. Re: How to get httprequest?
healeyb Oct 11, 2011 8:09 AM (in response to didier2011)Interestingly I have a comment in my code regarding portlets, I don't remember the background to it.
// This won't work for Portlets - whatever they are
public HttpServletRequest getRequest() {
return (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
}The ip address can be accessed by getRequest().getRemoteAddr() ...
Regards,
Brendan.
-
4. Re: How to get httprequest?
aeternitas Feb 5, 2012 3:04 PM (in response to dva)I got the same problem... I migrate an application from JBoss 6 to the 7th version, and have the same exception.. is here any way to register policy context handler using jboss configuration?
-
5. Re: How to get httprequest?
aeternitas Feb 6, 2012 12:31 PM (in response to aeternitas)well, no wonder, there is no HttpServletRequestPolicyContextHandler class anymore, PicketBox project contains only SubjectPolicyContextHandler.class and CallbackHandlerPolicyContextHandler.class. So seems that this part was also redesigned by JBoss 7. The question still open: if I create such a handler by myself, can I register it using any jboss configuration file? E.g. security profile?
-
6. Re: How to get httprequest?
adam150785 Mar 5, 2012 6:25 AM (in response to aeternitas)Has anyone managed to get access to the request in the LoginModule yet?
-
-
8. Re: How to get httprequest?
smatthews Sep 24, 2012 9:53 AM (in response to urug)There is also another thread here which I'm finding helpful to answering my issue: