<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SAML 2.0 Security Token Reference cannot be resolved in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/saml-2-0-security-token-reference-cannot-be-resolved/m-p/8013535#M1607999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to send a SAML 2.0 token to SAP Portal 7.3 EHP 2 using the sender-vouches confirmation method.&lt;/P&gt;&lt;P&gt;My message is signed by my client application. The signature references 3 parts: &lt;/P&gt;&lt;P&gt;1) a security token reference which in turn points to my SAML assertion (using STR transform)&lt;/P&gt;&lt;P&gt;2) the bdoy (using c14n transform)&lt;/P&gt;&lt;P&gt;3) the timestamp (using c14n transform)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Collecting some WS-Security trace, I can see the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Exception : Security Token Reference transform could not resolve token: &amp;lt;yq1:SecurityTokenReference yq2:Id='wssecurity_signature_id_23' xmlns:yq2='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd' xmlns:yq1='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'&amp;gt;&amp;lt;yq1:KeyIdentifier ValueType='http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLID'&amp;gt;Assertion-uuida9c3e36a-0131-11fd-bfea-f4ca184fc662&amp;lt;/yq1:KeyIdentifier&amp;gt;&amp;lt;/yq1:SecurityTokenReference&amp;gt;
java.lang.Exception
at com.sap.exception.BaseExceptionInfo.traceAutomatically(BaseExceptionInfo.java:1230)
at com.sap.exception.BaseExceptionInfo.&amp;lt;init&amp;gt;(BaseExceptionInfo.java:147)
at com.sap.exception.io.SAPIOException.&amp;lt;init&amp;gt;(SAPIOException.java:63)
at com.sap.engine.services.wssec.wsse.STRCanonicalizationWriter.doSTRTransform(STRCanonicalizationWriter.java:228)
at com.sap.engine.services.wssec.wsse.STRCanonicalizationWriter.leave(STRCanonicalizationWriter.java:152)
at com.sap.engine.services.wssec.xmlsecurity.signature.verification.ReferenceDispatcherReader.handleCode(ReferenceDispatcherReader.java:315)
at com.sap.engine.services.wssec.xmlsecurity.signature.verification.ReferenceDispatcherReader.next(ReferenceDispatcherReader.java:186)
at com.sap.engine.services.wssec.xmlsecurity.signature.verification.VerifyTokenReaderImpl.next(VerifyTokenReaderImpl.java:501)
at com.sap.engine.services.wssec.wsse.WSSecurityContext.init(WSSecurityContext.java:429)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Assertion-uuida9c3e36a-0131-11fd-bfea-f4ca184fc662 is the ID of my SAML assertion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the same configuration in my client app, but sending a SAML 1.1 token passes this step.&lt;/P&gt;&lt;P&gt;Is there any trace I can enable to further debug this issue?&lt;/P&gt;&lt;P&gt;Has anybody encountered the same issue before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Aug 2011 14:26:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-08T14:26:56Z</dc:date>
    <item>
      <title>SAML 2.0 Security Token Reference cannot be resolved</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saml-2-0-security-token-reference-cannot-be-resolved/m-p/8013535#M1607999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to send a SAML 2.0 token to SAP Portal 7.3 EHP 2 using the sender-vouches confirmation method.&lt;/P&gt;&lt;P&gt;My message is signed by my client application. The signature references 3 parts: &lt;/P&gt;&lt;P&gt;1) a security token reference which in turn points to my SAML assertion (using STR transform)&lt;/P&gt;&lt;P&gt;2) the bdoy (using c14n transform)&lt;/P&gt;&lt;P&gt;3) the timestamp (using c14n transform)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Collecting some WS-Security trace, I can see the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Exception : Security Token Reference transform could not resolve token: &amp;lt;yq1:SecurityTokenReference yq2:Id='wssecurity_signature_id_23' xmlns:yq2='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd' xmlns:yq1='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'&amp;gt;&amp;lt;yq1:KeyIdentifier ValueType='http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLID'&amp;gt;Assertion-uuida9c3e36a-0131-11fd-bfea-f4ca184fc662&amp;lt;/yq1:KeyIdentifier&amp;gt;&amp;lt;/yq1:SecurityTokenReference&amp;gt;
java.lang.Exception
at com.sap.exception.BaseExceptionInfo.traceAutomatically(BaseExceptionInfo.java:1230)
at com.sap.exception.BaseExceptionInfo.&amp;lt;init&amp;gt;(BaseExceptionInfo.java:147)
at com.sap.exception.io.SAPIOException.&amp;lt;init&amp;gt;(SAPIOException.java:63)
at com.sap.engine.services.wssec.wsse.STRCanonicalizationWriter.doSTRTransform(STRCanonicalizationWriter.java:228)
at com.sap.engine.services.wssec.wsse.STRCanonicalizationWriter.leave(STRCanonicalizationWriter.java:152)
at com.sap.engine.services.wssec.xmlsecurity.signature.verification.ReferenceDispatcherReader.handleCode(ReferenceDispatcherReader.java:315)
at com.sap.engine.services.wssec.xmlsecurity.signature.verification.ReferenceDispatcherReader.next(ReferenceDispatcherReader.java:186)
at com.sap.engine.services.wssec.xmlsecurity.signature.verification.VerifyTokenReaderImpl.next(VerifyTokenReaderImpl.java:501)
at com.sap.engine.services.wssec.wsse.WSSecurityContext.init(WSSecurityContext.java:429)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Assertion-uuida9c3e36a-0131-11fd-bfea-f4ca184fc662 is the ID of my SAML assertion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the same configuration in my client app, but sending a SAML 1.1 token passes this step.&lt;/P&gt;&lt;P&gt;Is there any trace I can enable to further debug this issue?&lt;/P&gt;&lt;P&gt;Has anybody encountered the same issue before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 14:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saml-2-0-security-token-reference-cannot-be-resolved/m-p/8013535#M1607999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-08T14:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAML 2.0 Security Token Reference cannot be resolved</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saml-2-0-security-token-reference-cannot-be-resolved/m-p/8013536#M1608000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried collecting traces using SAP Note [Troubleshooting Wizard|https://service.sap.com/sap/support/notes/1332726] with incident "WebServices Security"? You may find more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt; Desislava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 13:30:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saml-2-0-security-token-reference-cannot-be-resolved/m-p/8013536#M1608000</guid>
      <dc:creator>former_member269672</dc:creator>
      <dc:date>2011-09-20T13:30:21Z</dc:date>
    </item>
  </channel>
</rss>

