Web service client handler with SAML token is not called when security policy is applied (Doc ID 1286684.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version 10.3 and later
Information in this document applies to any platform.
***Checked for relevance on 09-Nov-2012***

Symptoms

When trying to use Webservice client handler as a way to insert a SAML token to the SOAP header for Webservice authentication, it is noticed that if security policy is applied to the Webservice, then the client handler is not called.  The below exception is thrown on client side instead:

java.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}Server] FaultString [Unable to add security token for identity] FaultActor [null]No Detail; nested exception is:


There is no workaround for this issue.

Steps to replicate the issue:

<?xml version="1.0"?>

<wsp:Policy
 xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
 xmlns:wssp="http://www.bea.com/wls90/security/policy"
 xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
 xmlns:wls="<a href="http://www.bea.com/wls90/security/policy/wsee#part">"
 ... ... ...
 <wssp:Identity>
   <wssp:SupportedTokens>    
     <wssp:SecurityToken TokenType="<a href="http://docs.oasis-open.org/wss/2004/01/oasis-2004-01-saml-token-profile-1.0#SAMLAssertionID">"
        ... ... ...
       <wssp:Claims>
         <wssp:ConfirmationMethod>sender-vouches</wssp:ConfirmationMethod>
         <wssp:TokenLifeTime>3600</wssp:TokenLifeTime>
       </wssp:Claims>
    </wssp:SecurityToken>    
   </wssp:SupportedTokens>
 </wssp:Identity>
</wsp:Policy>

 

java.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}Server] FaultString [Unable to add security token for identity] FaultActor [null]No Detail; nested exception is:
weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Unable to add security token for identity

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms