This content has been marked as final.
Show 5 replies
-
1. Re: Propagating Roles from Servlet Security Context to EJB3
tnfink Jan 9, 2007 5:29 AM (in response to tnfink)it works now.
The main problem was caused by the different configuration styles of the security-domain.
In jboss-web.xml it is<jboss-web> <security-domain>java:/jaas/reisekosten</security-domain> </jboss-web>
But in jboss.xml it is<jboss> <security-domain>reisekosten</security-domain> </jboss>
Now everything works automagically as expected. My login configuration does even not need a client-login anymore:<application-policy name = "reisekosten"> <authentication> <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required"> <module-option name="usersProperties">props/reisekosten-users.properties</module-option> <module-option name="rolesProperties">props/reisekosten-roles.properties</module-option> <module-option name="password-stacking">useFirstPass</module-option> </login-module> </authentication> </application-policy>
-- Torsten -
2. Re: Propagating Roles from Servlet Security Context to EJB3
anil.saldhana Jan 9, 2007 6:24 PM (in response to tnfink)Why don't you write a tutorial on your usecase and submit to the community? They will thank u. ;)
-
3. Re: Propagating Roles from Servlet Security Context to EJB3
tnfink Jan 11, 2007 7:08 AM (in response to tnfink)yes, I could do this.
Where should I put this tutorial?
Somewhere on the JBoss site or on our web-site?
-- Torsten -
4. Re: Propagating Roles from Servlet Security Context to EJB3
milkazen7 Jan 22, 2007 4:09 AM (in response to tnfink)If you wrote a tutorial can you give here the link to it please? I really would like such a tutorial, thanks ^_^
-
5. Re: Propagating Roles from Servlet Security Context to EJB3
tnfink Jan 29, 2007 10:10 AM (in response to tnfink)I now put up a quickly written tutorial on our web site.
You can find it here:
http://www.akquinet.de/content/java-sap/jems-tutorials/how-to-securely-access-ejbs-from-a-web-application-in-jboss.html