Announcement Announcement Module
Collapse
No announcement yet.
Add saml token into soap header Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment

    Working...
    X