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
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
Hi,
You can serialize the SAML Assertion received during single sign-on using:
Including the assertion in the SOAP call is then specific to the web-service client you're using.Code:Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); SAMLCredential samlCredential = (SAMLCredential) authentication.getCredentials(); String messageStr = XMLHelper.nodeToString(samlCredential.getAuthenticationAssertion().getDOM());
Cheers, Vladi