O
ohaya
Hi,
I am implementing a JAAS LoginModule in a Tomcat environment, and have
almost everything working. The problem that I am having is that I
cannot access the Subject from within servlets and JSPs. I have tried
the following:
<% Subject subject = Subject.getSubject(AccessController.getContext());
%>
<b>Subject</b> = <%= subject %>
and am getting "null" for the Subject. Another fellow on the Tomcat
mailing list is having the same problem, and he has tried:
AccessControlContext context = AccessController.getContext();
Subject subject = Subject.getSubject(context);
but is also getting null for the Subject.
Does anyone know how I can get access to the Subject from within either
a servlet or JSP in this case?
Thanks,
Jim
I am implementing a JAAS LoginModule in a Tomcat environment, and have
almost everything working. The problem that I am having is that I
cannot access the Subject from within servlets and JSPs. I have tried
the following:
<% Subject subject = Subject.getSubject(AccessController.getContext());
%>
<b>Subject</b> = <%= subject %>
and am getting "null" for the Subject. Another fellow on the Tomcat
mailing list is having the same problem, and he has tried:
AccessControlContext context = AccessController.getContext();
Subject subject = Subject.getSubject(context);
but is also getting null for the Subject.
Does anyone know how I can get access to the Subject from within either
a servlet or JSP in this case?
Thanks,
Jim