cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1390600 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
Date Wed, 26 Sep 2012 16:56:17 GMT
Author: dkulp
Date: Wed Sep 26 16:56:17 2012
New Revision: 1390600

URL: http://svn.apache.org/viewvc?rev=1390600&view=rev
Log:
If the Basic auth stuff is not valid, but a principal was provided, use it.

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java?rev=1390600&r1=1390599&r2=1390600&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
Wed Sep 26 16:56:17 2012
@@ -171,9 +171,10 @@ public abstract class AbstractHTTPDestin
                 policy.setAuthorizationType(authType);
                 return policy;
             } catch (Base64Exception ex) {
-                // Invalid authentication => treat as not authenticated
+                // Invalid authentication => treat as not authenticated or use the Principal
             }
-        } else if (pp != null) {
+        } 
+        if (pp != null) {
             AuthorizationPolicy policy = new PrincipalAuthorizationPolicy(pp);
             policy.setUserName(pp.getName());
             policy.setAuthorization(credentials);



Mime
View raw message