-
1. Re: using unchecked methods but still get
juha Feb 8, 2004 11:50 PM (in response to ll0011)You still need an authenticated user even though the authorization is "unchecked". Depending which login module you have configured, you can use module option unauthenticatedIdentity=< identity name> to pass user identity. See the documentation for more details.
-
2. How to use NO authentication
ll0011 Feb 9, 2004 9:55 AM (in response to ll0011)Hi, Thanks for the reply. I added the unauthenticatedIdentity module option to the "other" application policy, but it didn't help. (I also tried the "client-login" policy).
What else could I be doing wrong? This is a simple test app and I just want to disable authentication completely.
Thanks.
Here is the excerpt from my login-config.xml (btw, the "authentication" elements are there, but I noticed when I did a preview that they don't show up for some reason...)<application-policy name = "other"> <authentication> <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required" /> <module-option name = "unauthenticatedIdentity">guest</module-option> </authentication> </application-policy>
-
3. Re: using unchecked methods but still get
starksm64 Feb 9, 2004 3:08 PM (in response to ll0011)Fix your xml, module-option is a child element of login-module:
<application-policy name = "other"> <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required"> <module-option name = "unauthenticatedIdentity">guest</module-option> </login-module> </application-policy>