Use the PUT /ccadmin/v1/merchant/samlSettings endpoint in the Admin API to configure Commerce Cloud to use storefront SSO. The endpoint request body includes the following properties that are used to create the service provider entity descriptor:

In addition, the request body can include several properties that control the SAML security policies that Commerce Cloud enforces. The values of these properties are used to create settings in the service provider entity descriptor:

The following call enables and configures SSO on a Commerce Cloud instance:

PUT /ccadmin/v1/merchant/samlSettings  HTTP/1.1
Authorization: Bearer <access_token>

{
  "enabled": true,
  "nameIdPolicyFormat": "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent",
  "requireEncryptedAssertions": true,
  "requireSignedResponse": true,
  "signAuthnRequest": true,
  "nameIdPolicyAllowCreate": true
}

Note that it may take several minutes for the changes to propagate to the storefront server.


Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices