Results 1 to 2 of 2

Thread: Add saml token into soap header

  1. #1
    Join Date
    Jan 2013
    Posts
    10

    Default Add saml token into soap header

    Hi,

    My JSF web application is integrated with spring security saml. This web app will call secured web service. How can this web app get and add security token into a soap request ?

    Thanks,
    patch

  2. #2
    Join Date
    Feb 2009
    Location
    Helsinki
    Posts
    163

    Default

    Hi,

    You can serialize the SAML Assertion received during single sign-on using:

    Code:
    Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
    SAMLCredential samlCredential = (SAMLCredential) authentication.getCredentials();
    String messageStr = XMLHelper.nodeToString(samlCredential.getAuthenticationAssertion().getDOM());
    Including the assertion in the SOAP call is then specific to the web-service client you're using.

    Cheers, Vladi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •