This content has been marked as final.
Show 3 replies
-
1. Re: LoginContext for Servlet
spiritualmechanic Apr 24, 2004 6:59 AM (in response to martin.weidig)Make sure you secure your servlet and that you are logging in. If your servlet isn't secured, a null Subject is passed on to the EJB layer.
-
2. Re: LoginContext for Servlet
starksm64 Apr 25, 2004 10:01 AM (in response to martin.weidig)The configuration in the server/default/conf/login-config.xml for the "handlerName" configuration must include the org.jboss.security.ClientLoginModule in order to propagate the credentials to the ejb layer correctly. This is the default configuration for clients.
-
3. Re: LoginContext for Servlet
martin.weidig Apr 26, 2004 2:17 AM (in response to martin.weidig)Thanks to Scott!
Copy of
<login-module code = org.jboss.security.ClientLoginModule" flag = "required">
</login-module>
to the
<application-policy name = "handlerName"> in login-config.xml works very well!