-
1. Re: Finding the Subject in a servlet.
jhouse Aug 10, 2003 9:04 AM (in response to jhouse)
I should have also mentioned that I have also tried this:
Subject sub = (Subject)request.getAttribute("j_subject");
...which also returns a null
I have double-checked the entry in the jboss-service.xml for jetty, and the following entry exists:
j_subject
thanks for any additional pointers...
james -
2. Re: Finding the Subject in a servlet.
jhouse Aug 10, 2003 9:58 AM (in response to jhouse)... I can also see the following in jboss's logs:
So why can't I find the subject in the request?
===================================
2003-08-10 09:47:56,095 DEBUG [org.jboss.jetty.security.JBossUserRealm#netops] authenticated: jhouse
2003-08-10 09:47:56,105 DEBUG [org.jboss.jetty.security.JBossUserRealm#netops] setting JAAS subjectAttributeName(j_subject) : Subject:
Principal: jhouse
Principal: Roles(members:user,manager)
2003-08-10 09:47:58,218 DEBUG [org.jboss.jetty.security.JBossUserRealm#netops] authenticating: Name:jhouse Password:****
2003-08-10 09:47:58,218 DEBUG [org.jboss.jetty.security.JBossUserRealm#netops] authenticated: jhouse
2003-08-10 09:47:58,218 DEBUG [org.jboss.jetty.security.JBossUserRealm#netops] JBossUserPrincipal: jhouse is in Role: user
2003-08-10 09:48:13,039 DEBUG [org.jboss.jetty.security.JBossUserRealm#netops] authenticating: Name:jhouse Password:****
2003-08-10 09:48:13,039 DEBUG [org.jboss.jetty.security.JBossUserRealm#netops] authenticated: jhouse
2003-08-10 09:48:13,039 DEBUG [org.jboss.jetty.security.JBossUserRealm#netops] JBossUserPrincipal: jhouse is in Role: user
2003-08-10 09:48:13,089 DEBUG [org.jboss.jetty.security.JBossUserRealm#netops] JBossUserPrincipal: jhouse is in Role: manager
2003-08-10 09:48:13,099 DEBUG [org.jboss.jetty.security.JBossUserRealm#netops] JBossUserPrincipal: jhouse is in Role: user