Using WS-Trust to issue security token via UserNameToken
Use case:
We call STS Service via UserNameToken to acquire a SAML Assertion so that to consume a Service which protected by SAML.
So we have created two SOAP Connectors.
One SOAP Connctor is for STS Service, we passed the UserNameToken through WS Security Profile, the Service Request is set in SOAP Request Body, the SAMLAssertion returned.
The second SOAP Connctor is for the Service XY, we set the SAMLAssetion in Security Header, call the Service as usual, Servicerequest could be successfully processed.
And as we known, this process could be run automatically through WS- Trust. Then i configured the WS Trust on base of this documentation.
But the STS Service Call failed already and i got the exception,
Exception occured while checking the cache:
and the SAMLAssertion could not be generated. We have to call the STS Service with UserNameToken to acquire SAML Assertion. And we could not set "WS Security Profile" and "WS Policy" at the same time, as the screenshot shown. How can i pass the usernametoken?
And i have also tried with the sts poilcy, but got the same exception.
Have someone any idea, how we configured it with ws trust?
***Edited by Moderator Marije to change type from Pega Academy to Product***