This content has been marked as final.
Show 3 replies
-
1. Re: Tomcat and JAAS cooperation with more parameters
xmedeko Mar 17, 2010 9:34 AM (in response to xmedeko)I can make a user login first, then the user may pick his/her identity. But that would not set roles properly. Or may I set roles after login?
-
2. Re: Tomcat and JAAS cooperation with more parameters
sergerus Apr 30, 2010 4:10 AM (in response to xmedeko)I have similar problem http://community.jboss.org/message/539996
-
3. Re: Tomcat and JAAS cooperation with more parameters
xmedeko Apr 30, 2010 4:46 AM (in response to sergerus)Hi Sergei,
as an workaround, you can "embed" the domain in the "login" name. E.g. the login form would make a login name like "domain:name". It can be made by Javascript, or you may use org.jboss.web.tomcat.security.login.WebAuthentication for this on the server side. Then your login module has to parse the the login name to get the domain and the real login name.
But I would like to know how to make a "clean" solution, anyway. I am sometimes surprised, how simple problems have only complicated solutions in the JEE world.