cxf-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1390602&view=rev
Log:
If we have a principal, even for basic auth, record 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=1390602&r1=1390601&r2=1390602&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 17:03:22 2012
@@ -165,7 +165,8 @@ public abstract class AbstractHTTPDestin
                 // Below line for systems that blank out password after authentication;
                 // see CXF-1495 for more info
                 String password = (authInfo.length > 1) ? authInfo[1] : "";
-                AuthorizationPolicy policy = new AuthorizationPolicy();
+                AuthorizationPolicy policy = pp == null 
+                    ? new AuthorizationPolicy() : new PrincipalAuthorizationPolicy(pp);
                 policy.setUserName(username);
                 policy.setPassword(password);
                 policy.setAuthorizationType(authType);



Mime
View raw message