Reputation: 83
I'm configuring SAML SSO and saml to oauth2 bearer token exchange on wso2 products. A wso2 identity server instance for the idp and same instance configured as the service provider for SSO. And another wso2 api manager instance for the saml2 to oauth2 bearer token exchange.
I'm getting following error when POST to the https://wso2amsrv.com:9463/oauth2/token. ERROR - SAML2BearerGrantHandler Error in constructing XML Object from the encoded String
Upvotes: 1
Views: 363
Reputation: 5821
Configurations does not seems be much correct. SAML2 Assertion is a XML. When you are calling the /token
endpoint, SAML2 Assertion must be base64 url encoded. It is great, if you can go through this to understand how you can properly setup to grant an access token with SAML2 bearer assertion profile.
Upvotes: 2