Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 18067 invoked from network); 22 Jul 2010 04:10:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Jul 2010 04:10:18 -0000 Received: (qmail 88192 invoked by uid 500); 22 Jul 2010 04:10:18 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 88107 invoked by uid 500); 22 Jul 2010 04:10:16 -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 88099 invoked by uid 99); 22 Jul 2010 04:10:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 04:10:15 +0000 X-ASF-Spam-Status: No, hits=-1998.7 required=10.0 tests=ALL_TRUSTED,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 04:10:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6M49nsi023328 for ; Thu, 22 Jul 2010 04:09:50 GMT Message-ID: <8309739.511101279771789956.JavaMail.jira@thor> Date: Thu, 22 Jul 2010 00:09:49 -0400 (EDT) From: "Glen Mazza (JIRA)" To: issues@cxf.apache.org Subject: [jira] Updated: (CXF-2894) use wsse:KeyIdentifier instead of wsse:Reference for SAML token profile In-Reply-To: <8592364.374461279115753489.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Glen Mazza updated CXF-2894: ---------------------------- Attachment: CXF2894Example.txt Example showing failed SOAP call to Metro web service provider. > use wsse:KeyIdentifier instead of wsse:Reference for SAML token profile > ----------------------------------------------------------------------- > > Key: CXF-2894 > URL: https://issues.apache.org/jira/browse/CXF-2894 > Project: CXF > Issue Type: Bug > Components: WS-* Components > Reporter: Glen Mazza > Attachments: 20100714DoubleItMetroWSTrust.zip, CXF2894Example.txt > > > CXF should be using the KeyIdentifier element when identifying SAML Assertions within wsse:SecurityTokenReference elements. > Issue and explanation in this thread: > http://cxf.547215.n5.nabble.com/Problem-using-SAML-token-profile-to-access-a-Metro-web-service-td1064848.html#a1064848 > Attached zip contains a Metro web service and STS (intended for standalone Tomcat deployment), a working Metro client, and a complaining CXF one, all components Mavenized for easily compilation, deployment, and execution. > Instructions to host sample web service and STS from attachment: > 1.) If necessary, to allow mvn tomcat:deploy to work in next step, set up Maven tomcat config: > Pale green "Maven only" section of Step #8 here has instructions: > http://www.jroller.com/gmazza/entry/web_service_tutorial#WFstep8 > 2.) From root directory, type mvn clean install tomcat:deploy > (can call tomcat:undeploy on subsequent runs) > Once done, confirm can see Metro web service WSDL from browser: > https://localhost:8443/doubleit/services/doubleit?wsdl > And confirm can see Metro STS WSDL: > http://localhost:8080/DoubleItSTS/DoubleItSTSService?wsdl > 3.) > Place the 2.2 version of jaxws-api.jar (https://jax-ws.dev.java.net/) in the JDK_HOME/jre/lib/endorsed folder. > Once done, navigate to Metro client folder (/client-metro) and run mvn exec:exec > Confirm can see output of doubled number results (10 doubled is 20). > Wireshark results of the whole STS process w/Metro is here: > http://www.jroller.com/gmazza/entry/metro_wstrust_analysis > 5.) > Remove 2.2 JAXWS-api.jar from endorsed folder. > Navigate to CXF client folder (/client-cxf) and run > mvn clean install exec:exec (need to build here, as client-cxf is not part of parent POM due to Metro dependencies.) > Should see this error message: > [INFO] Jul 14, 2010 8:00:46 AM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL > [INFO] INFO: Creating Service {http://www.example.org/contract/DoubleIt}DoubleItService from WSDL: file:/work/workspace/DoubleItMetroWSTrust/client-cxf/src/main/resources/DoubleItService.wsdl > [INFO] Jul 14, 2010 8:00:48 AM org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor handleMessage > [INFO] WARNING: Request does not contain required Security header, but it's a fault. > ----->[INFO] Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: unsupported directreference ValueType http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.0#SAMLAssertionID<----- > [INFO] at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146) > [INFO] at $Proxy38.doubleIt(Unknown Source) > [INFO] at client.WSClient.doubleIt(WSClient.java:18) > [INFO] at client.WSClient.main(WSClient.java:11) > [INFO] Caused by: org.apache.cxf.binding.soap.SoapFault: unsupported directreference ValueType http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.0#SAMLAssertionID > [INFO] at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75) > [INFO] at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46) > [INFO] at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35) > [INFO] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243) > If you can use Wireshark to trace localhost calls (always can on Linux, sometimes on Windows), can use Wireshark's Show TCP stream capability to get more of error message: http://www.jroller.com/gmazza/entry/soap_calls_over_wireshark -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.