This content has been marked as final.
Show 3 replies
-
1. Re: How to pass data from valve to login module?
j4m3s Apr 24, 2012 12:01 PM (in response to herb)Did you find an answer herb? I need to access the sessionID from my login module.
Thanks, James
-
2. Re: How to pass data from valve to login module?
j4m3s Apr 25, 2012 4:57 AM (in response to j4m3s)found it here: https://community.jboss.org/wiki/WebAuthenticationUsingHTTPRequestParameters
I'm using maven so needed to add the following to my dependencies:
<dependency> <groupId>org.jboss.spec.javax.security.jacc</groupId> <artifactId>jboss-jacc-api_1.4_spec</artifactId> </dependency> (I've not got a version number in there because I imported the jboss bom which specifies 1.0.0.Final for me)
-
3. Re: How to pass data from valve to login module?
herb Apr 25, 2012 6:28 AM (in response to j4m3s)I found a jacc method to retrieve HttpServletRequest in my login module:
HttpServletRequest request = (HttpServletRequest) javax.security.jacc.PolicyContext.getContext("javax.servlet.http.HttpServletRequest");