My Oracle Support Banner

How to Retrieve SAML Bearer Assertion for Client Authentication (Doc ID 2453588.1)

Last updated on APRIL 20, 2023

Applies to:

Oracle Commerce Cloud Service - Version N/A and later
Information in this document applies to any platform.

Goal

The customer is using SAML to login Storefront and they decide to extend this to grant user access to Storefront through REST API.
To do this, the customer would like to use a SAML Client Assertion for client authentication as described and would like to know how to get the SAML client assertion.

curl -i

-H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8"
--request POST http://host:port/ms_oauth/oauth2/endpoints/oauthservice/tokens
-d 'client_id=<CLIENT ID>
&grant_type=client_credentials
&client_assertion_type=urn:ietf:params:oauth:client-assertion-type:saml2-bearer
&client_assertion=<SAML CLIENT ASSERTION VALUE>
&scope=scope1 scope2'



Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.