This content has been marked as final.
Show 3 replies
-
1. Re: Duration of container getCallerPrincipal
starksm64 Mar 19, 2006 1:50 PM (in response to starksm64)The difference in behavior is due to the difference in client-login configuration between the jacc and jacc-securitymgr:
jacc login-config.xml/client-login<application-policy name="client-login"> <authentication> <login-module code="org.jboss.security.ClientLoginModule" flag="required"> </login-module> </authentication> </application-policy>
jacc-securitymgr login-config.xml/client-login<application-policy name = "client-login"> <authentication> <login-module code = "org.jboss.security.ClientLoginModule" flag = "required"> <!-- Any existing security context will be restored on logout --> <module-option name="restore-login-identity">true</module-option> </login-module> </authentication> </application-policy>
This is due to the create-config macro picking up the test-configs/jacc overrides only for the jacc config run. There really should be a base-testconfig to allow for reuse of the test-configs with different server config targets. -
2. Re: Duration of container getCallerPrincipal
anil.saldhana Mar 20, 2006 10:36 AM (in response to starksm64)Apart from the test configuration changes, Scott, you made changes to Enterprise Context wrt beanPrincipal. Could you add in a few lines to this thread so that your changes are recorded in this discussion?
-
3. Re: Duration of container getCallerPrincipal
starksm64 Mar 20, 2006 12:31 PM (in response to starksm64)The beanPrincipal which defines the getCallerPrincipal result is set everytime the request principal is set via the setPrincipal call. This ensures there no time of use dependency on the getCallerPrincipal method anywhere along the interceptor stack after the SecurityInterceptor.