You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by cs...@apache.org on 2013/02/07 20:02:44 UTC
svn commit: r1443665 - in /cxf/branches/2.7.x-fixes: ./
rt/transports/http/src/main/java/org/apache/cxf/transport/http/CXFAuthenticator.java
Author: cschneider
Date: Thu Feb 7 19:02:43 2013
New Revision: 1443665
URL: http://svn.apache.org/r1443665
Log:
CXF-4815 Do not return auth info for basic and disgest auth as we already support it through the HttpConduit
Modified:
cxf/branches/2.7.x-fixes/ (props changed)
cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/CXFAuthenticator.java
Propchange: cxf/branches/2.7.x-fixes/
------------------------------------------------------------------------------
Merged /cxf/trunk:r1443654
Modified: cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/CXFAuthenticator.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/CXFAuthenticator.java?rev=1443665&r1=1443664&r2=1443665&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/CXFAuthenticator.java (original)
+++ cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/CXFAuthenticator.java Thu Feb 7 19:02:43 2013
@@ -98,9 +98,7 @@ public class CXFAuthenticator extends Au
} else if (getRequestorType() == RequestorType.SERVER
&& httpConduit.getAuthorization() != null) {
- if (m.containsKey(PasswordAuthentication.class.getName())
- && ("basic".equals(getRequestingScheme())
- || "digest".equals(getRequestingScheme()))) {
+ if ("basic".equals(getRequestingScheme()) || "digest".equals(getRequestingScheme())) {
return null;
}
@@ -108,7 +106,6 @@ public class CXFAuthenticator extends Au
String pwd = httpConduit.getAuthorization().getPassword();
if (un != null && pwd != null) {
auth = new PasswordAuthentication(un, pwd.toCharArray());
- m.put(PasswordAuthentication.class.getName(), Boolean.TRUE);
}
}
}