Author: gnodet
Date: Wed Feb 14 08:36:44 2007
New Revision: 507607

URL: http://svn.apache.org/viewvc?view=rev&rev=507607
Log:
SM-842: AuthenticationService set on the configuration is not used

Modified:
    
incubator/servicemix/branches/servicemix-3.1/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/jetty/JettyContextManager.java

Modified: 
incubator/servicemix/branches/servicemix-3.1/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/jetty/JettyContextManager.java
URL: 
http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-3.1/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/jetty/JettyContextManager.java?view=diff&rev=507607&r1=507606&r2=507607
==============================================================================
--- 
incubator/servicemix/branches/servicemix-3.1/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/jetty/JettyContextManager.java
 (original)
+++ 
incubator/servicemix/branches/servicemix-3.1/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/jetty/JettyContextManager.java
 Wed Feb 14 08:36:44 2007
@@ -195,7 +195,11 @@
             secHandler.setConstraintMappings(new ConstraintMapping[] { 
constraintMapping });
             secHandler.setHandler(handler);
             secHandler.setAuthMethod(processor.getAuthMethod());
-            secHandler.setUserRealm(new JaasUserRealm());
+            JaasUserRealm realm = new JaasUserRealm();
+            if (configuration.getAuthenticationService() != null) {
+                  
realm.setAuthenticationService(configuration.getAuthenticationService());       
      
+            }
+            secHandler.setUserRealm(realm);
             context.setHandler(secHandler);
         } else {
             context.setHandler(handler);


Reply via email to