We are using WSO2 IS 4.5.0 for our product implementation. We are implementing SAML2 based SSO between our product applications. And our REST APIs are secured using OAuth2. Now, we are trying to configure IS to issue SAML2 bearer token for OAuth applications.
These are the steps that we followed
- Added a tenant 'sample.com'
- Added SAML SSO service provider (travelocity.com) within tenant 'sample.com'
- Added OAuth application within tenant 'travelocity'
- Added Trusted Identity Provider as defined in SAML2 Bearer Assertion Profile for OAuth 2
- Added wso2carbon.jks public certificate to Trusted Identity Provider [This is the same certificate used during SAML Authentication Request generation]
And when I try to invoke OAuth2Service.issueAccess, I get the following error
Signature was either invalid or signing key could not be established as trusted
Any help to resolve will be highly appreciated.