geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmcma...@apache.org
Subject svn commit: r524275 - /geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java
Date Fri, 30 Mar 2007 21:16:01 GMT
Author: pmcmahan
Date: Fri Mar 30 14:16:00 2007
New Revision: 524275

URL: http://svn.apache.org/viewvc?view=rev&rev=524275
Log:
GERONIMO-3048 add support for NONE authentication method to TomcatEJBWebServiceContext using
Tomcat's NonLoginAuthenticator

Modified:
    geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java

Modified: geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java?view=diff&rev=524275&r1=524274&r2=524275
==============================================================================
--- geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java
(original)
+++ geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java
Fri Mar 30 14:16:00 2007
@@ -31,6 +31,7 @@
 
 import org.apache.catalina.authenticator.BasicAuthenticator;
 import org.apache.catalina.authenticator.DigestAuthenticator;
+import org.apache.catalina.authenticator.NonLoginAuthenticator;
 import org.apache.catalina.authenticator.SSLAuthenticator;
 import org.apache.catalina.connector.Request;
 import org.apache.catalina.connector.Response;
@@ -83,7 +84,8 @@
                 throw new IllegalArgumentException("Invalid transport-guarantee: " + transportGuarantee);
             }
 
-            if ("BASIC".equals(authMethod) ||
+            if ("NONE".equals(authMethod) ||
+                "BASIC".equals(authMethod) ||
                 "DIGEST".equals(authMethod) ||
                 "CLIENT-CERT".equals(authMethod)) {
 
@@ -114,6 +116,8 @@
                     this.addValve(new DigestAuthenticator());
                 } else if ("CLIENT-CERT".equals(authMethod) ){
                     this.addValve(new SSLAuthenticator());
+                } else if ("NONE".equals(authMethod)) {
+                    this.addValve(new NonLoginAuthenticator());
                 }
 
             } else {



Mime
View raw message