This content has been marked as final.
Show 2 replies
-
1. Re: Determining User's security roles
chrisgerrard Apr 10, 2002 12:59 PM (in response to chrisgerrard)I've found two JBoss classes that retrieve Security information using JNDI:
- org.jboss.test.security.ejb.EntityBeanImpl.java
- org.jboss.chap11s.web.MailAccountServlet.java
I've tried the code from MailAccountServlet.java in one of my own servlets and it works.
There are some pecularities in JBoss' Db organization that uses 'qualified' groups to distinguish the User's login Principal from the Roles the User is associated with. I know this explanation is vague; I'm tracking this down and will report my findings later. -
2. Re: Determining User's security roles
chrisgerrard May 3, 2002 7:25 PM (in response to chrisgerrard)There's a post by basil @http://jboss.org/forums/thread.jsp?forum=49&thread=12162&message=3513126#3513126
that describes how to get the current Subject from JBoss.
I've used this code in a SLSB and it's worked OK so far.