Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DE9577F9A for ; Mon, 12 Sep 2011 14:30:54 +0000 (UTC) Received: (qmail 56672 invoked by uid 500); 12 Sep 2011 14:30:54 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 56327 invoked by uid 500); 12 Sep 2011 14:30:38 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 56261 invoked by uid 99); 12 Sep 2011 14:30:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2011 14:30:32 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2011 14:30:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6000890859 for ; Mon, 12 Sep 2011 14:30:09 +0000 (UTC) Date: Mon, 12 Sep 2011 14:30:09 +0000 (UTC) From: "Colm O hEigeartaigh (JIRA)" To: issues@cxf.apache.org Message-ID: <1621360294.17330.1315837809390.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <39021222.1532.1312295127414.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CXF-3701) CXF 2.4.1 only supports base64 encoding for nonce of a wsse UserToken MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-3701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13102685#comment-13102685 ] Colm O hEigeartaigh commented on CXF-3701: ------------------------------------------ The Nonce of a UsernameToken must contain a Base64 EncodingType as per the Basic Security Profile 1.1 specification: http://www.ws-i.org/Profiles/BasicSecurityProfile-1.1.html#Nonce/@EncodingType_Attribute_Mandatory You can disable Basic Security Profile enforcement in CXF by setting the SecurityConstants property "ws-security.is-bsp-compliant" to "false". Colm. > CXF 2.4.1 only supports base64 encoding for nonce of a wsse UserToken > --------------------------------------------------------------------- > > Key: CXF-3701 > URL: https://issues.apache.org/jira/browse/CXF-3701 > Project: CXF > Issue Type: Bug > Components: WS-* Components > Affects Versions: 2.4.1 > Environment: Windows 7, Java 1.6, maven, spring 3.0 > Reporter: David Smith > > Our application uses the wsse Username Token for authentication, PasswordType is Digest. > With CXF 2.3.2 our server could accept and authenticate requests from .NET C# applications (I believe they use WCF libraries). > After upgrading to CXF 2.4.1 the server started rejecting requests from the .NET C# applications, complaining that the userName token was invalid (I include stack traces and examples of the SOAP header below). Should say if a client uses Base64 for the encoding then CXF accepts the UserName Token correctly. > I believe the problem is that 2.4.1 only supports Base64 for the nonce encoding. This seems to be a step backwards from 2.3.2 as it can process the same requests. > Is this change intentional (something to do with standards?), or is it an oversight? > Should this be fixed on the .NET client side, or in CXF 2.4.1. > ---- Example of SOAP that fail ---- > Payload: Till_0001FTSMoH0PbjVfiWkUY0lB19V2CrQ=/yGgGFAuAbsExz2cTxqCTA==2011-08-02T11:38:39Z/* commented out */ > ---- Stack trace (extract) ---- > Caused by: org.apache.ws.security.WSSecurityException: An invalid security token was provided (An error happened processing a Username Token) > at org.apache.ws.security.message.token.UsernameToken.checkBSPCompliance(UsernameToken.java:1078) > at org.apache.ws.security.message.token.UsernameToken.(UsernameToken.java:154) > at org.apache.ws.security.processor.UsernameTokenProcessor.handleUsernameToken(UsernameTokenProcessor.java:113) > at org.apache.ws.security.processor.UsernameTokenProcessor.handleToken(UsernameTokenProcessor.java:52) > at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:396) > at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:249) > ... 57 more -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira