Once you have configured SSO on your Commerce Cloud instance, you can use the GET /ccstore/v1/merchant/samlSettings
endpoint in the Store API to return the service provider entity descriptor. For example, if you send the following request:
GET /ccstore/v1/merchant/samlSettings HTTP/1.1
Authorization: Bearer <access_token>
The response will be similar to this:
{ "spEntityDescriptor": "<
service
provider
e
ntity
d
escriptor
>
", "links": [ { "rel": "self", "href": "http://myserver.example.com:7002/ccstore/v1/merchant/samlSettings" } ] }
The entity descriptor is returned as the value of the spEntityDescriptor
property. This value is an XML document using a standard SAML 2.0 format for describing the configuration of the service provider.
To return the entity descriptor in Base64 encoding, call the endpoint with the encode
query parameter set to true
:
GET /ccstore/v1/merchant/samlSettings?encode=true HTTP/1.1
Authorization: Bearer <access_token>
Save the value of spEntityDescriptor
as a standalone document. Note that you need to create separate entity descriptors for your preview server and your production server, as they will need to be registered with the identity provider as separate service providers.