Author: jgenender
Date: Sun Feb  6 03:19:51 2005
New Revision: 151574

URL: http://svn.apache.org/viewcvs?view=rev&rev=151574
Log:
Saved policy context id

Modified:
    
geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatGeronimoRealm.java

Modified: 
geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatGeronimoRealm.java
URL: 
http://svn.apache.org/viewcvs/geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatGeronimoRealm.java?view=diff&r1=151573&r2=151574
==============================================================================
--- 
geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatGeronimoRealm.java
 (original)
+++ 
geronimo/trunk/modules/tomcat/src/java/org/apache/geronimo/tomcat/TomcatGeronimoRealm.java
 Sun Feb  6 03:19:51 2005
@@ -173,16 +173,13 @@
                                          SecurityConstraint[] constraints)
             throws IOException {
 
-        //Set the proper context
-        PolicyContext.setContextID(policyContextID);
-
         //Get an authenticated subject, if there is one
         Subject subject = null;
         try {
 
             //We will use the PolicyContextHandlerContainerSubject.HANDLER_KEY 
to see if a user
             //has authenticated, since a request.getUserPrincipal() will not 
pick up the user
-            //unless its using a acached session.
+            //unless its using a cached session.
             subject = (Subject) 
PolicyContext.getContext(PolicyContextHandlerContainerSubject.HANDLER_KEY);
 
         } catch (PolicyContextException e) {


Reply via email to