Configure SSO with SAML 2.0
You can configure Oracle Identity Cloud Service to provide single sign-on (SSO) for Retail Digital Commerce applications using SAML 2.0.
![]()
This section applies to Open Storefront Framework
(OSF).
Before you begin, you will need the following:
- An Retail Digital Commerce account with authorization rights to configure federated authentication.
- An Oracle Identity Cloud Service account with authorization rights to manage applications and users (Identity Domain Administrator or Application Administrator).
- Identity provider metadata. Use the following URL to access the
metadata:
https://<IDCS-Service-Instance>.identity.oraclecloud.com/fed/v1/metadata
IDCS must be configured to require multi-factor authentication (MFA) logins for users that can access the Retail Digital Commerce administration interface, to meet the requirements of PCI.
Note:
SAML 2.0 SSO does not support using IDCS OAuth 2 application keys with Retail Digital Commerce. If you want to use IDCS OAuth 2 application keys, use OpenID Connect SSO instead.
Configure SAML 2.0 SSO for Retail Digital Commerce
This section describes how to configure SSO in Retail Digital Commerce apps with Oracle Identity Cloud Service.
Configure an identity provider
- Log in as an administrator at:
https://<Oracle-Retail-Digital-Commerce-admin-domain>/occs-admin/#/adminLoginThis is a special login path that allows your primary administrator direct access to the Retail Digital Commerce administration interface even when SSO is enabled, so that edits can be made to the SSO settings. This login requires multi-factor authentication.
- Click the menu icon and select Settings.
- On the Settings page, click Oracle Integrations section.
- Select IDCS from the popup menu.
If IDCS is not available as an option on this menu, contact your Oracle representative.
- Upload the identity provider metadata file (see above).
- Logout.
Configure Retail Digital Commerce in Oracle Identity Cloud Service
This section describes how to register and activate the Retail Digital Commerce applications. You can then assign users or groups to these applications.
Register and activate the Retail Digital Commerce administration application
- Access the Oracle Identity Cloud Service administration console, select Applications, and then click Add.
- Click SAML Application.
- Enter the name: Oracle Retail Digital Commerce Admin.
- Verify that the Display in My Apps checkbox is selected, and then click Next.
- For Entity ID, enter:
https://<Oralce-Retail-Digital-Commerce-admin-domain>/occs-admin - For Assertion Consumer URL, enter:
https://<Oracle-Retail-Digital-Commerce-admin-domain>/occs-admin/sso-login.jsp - For NameID Format, use: Persistent
- For NameID Value, use: User Name
- Open Advanced Settings.
- For Signed SSO, use: Assertion
- For Signature Hashing Algorithm, use: SHA-256
- Select Enable Single Logout.
- For Logout Binding, use: POST
- For Single Logout URL, enter:
https://<Oracle-Retail-Digital-Commerce-admin-domain>/occs-admin/sso-logout.jsp - For Logout Response URL, enter:
https://<Oracle-Retail-Digital-Commerce-admin-domain>/occs-admin - Open Attribute Configuration.
- Add the following attributes:
| Name | Format | Entry | Value |
|---|---|---|---|
| uid | Basic | User Attribute | User Name |
| Basic | User Attribute | Primary Email | |
| firstName | Basic | User Attribute | First Name |
| lastName | Basic | User Attribute | Last Name |
Now click Activate, and then click Activate Application. Oracle Identity Cloud Service displays a confirmation message.
Register and activate the Oracle Retail Digital Commerce agent application
- In the Oracle Identity Cloud Service administration console, select Applications, and then click Add.
- Click SAML Application.
- Enter the name: Oracle Retail Digital Commerce Agent.
- Verify that the Display in My Apps checkbox is selected, and then click Next.
- For Entity ID, enter:
https://<commerce-agent-domain>/occs-agent - For Assertion Consumer URL, enter:
https://<commerce-agent-domain>/occs-agent/sso-login.jsp - For NameID Format, use: Persistent
- For NameID Value, use: User Name
- Open Advanced Settings.
- For Signed SSO, use: Assertion
- For Signature Hashing Algorithm, use: SHA-256
- Select Enable Single Logout.
- For Logout Binding, use: POST
- For Single Logout URL, enter:
https://<Oracle-Retail-Digital-Commerce-agent-domain>/occs-agent/sso-logout.jsp - For Logout Response URL, enter:
https://<Oracle-Retail-Digital-Commerce-agent-domain>/occs-agent - Open Attribute Configuration.
- Add the following attributes:
| Name | Format | Type | Value |
|---|---|---|---|
| uid | Basic | User Attribute | User Name |
| Basic | User Attribute | Primary Email | |
| firstName | Basic | User Attribute | First Name |
| lastName | Basic | User Attribute | Last Name |
Now click Activate, and then click Activate Application. Oracle Identity Cloud Service displays a confirmation message.
Verify the Integration
This section describes how to verify that SSO and single log-out (SLO) work when initiated from Oracle Identity Cloud Service (identity provide initiated SSO and SLO) and from Retail Digital Commerce (service provider initiated SSO and SLO).
Verify identity provider initiated SSO
- Access the Oracle Identity Cloud Service My Console at:
https://<IDCS-Service-Instance>.identity.oraclecloud.com/ui/v1/myconsole - Log in using credentials for a user that is assigned to the Retail Digital Commerce agent and administration applications. (Oracle Identity Cloud Service displays a shortcut to Retail Digital Commerce applications under My Apps).
- Click the Retail Digital Commerce agent application. The Retail Digital Commerce agent home page appears.
- On the home page, verify that the logged-in user is the same for both Retail Digital Commerce and Oracle Identity Cloud Service. This confirms that SSO that is initiated from Oracle Identity Cloud Service is working.
Verify service provider initiated SSO
- Access Retail Digital Commerce at:
https://<commerce-admin-domain>/occs-adminYou will redirected to the Oracle Identity Cloud Service Sign In page
- Log in using credentials for a user that is assigned to the Retail Digital Commerce administration application. The Retail Digital Commerce administration home page appears.
- On the Retail Digital Commerce administration home page, verify that the logged-in user is the same for both Retail Digital Commerce and Oracle Identity Cloud Service. This confirms that SSO initiated from Oracle Retail Digital Commerce administration is working.
If the user can access only the dashboard page in Retail Digital Commerce administration after logging in, your Retail Digital Commerce Administrator will need to add the appropriate roles in the administration interface. By default, new users have dashboard access only.
Verifying identity provider initiated SLO
- On the Oracle Identity Cloud Service home page, click the user name in the upper-right corner, and then select Sign Out from the drop-down list.
- Access the user profile in Retail Digital Commerce, and verify that the login page appears. This confirms that SLO is working and that the user is no longer logged in to Retail Digital Commerce and Oracle Identity Cloud Service.
Verify service provider initiated SLO
- On the Retail Digital Commerce administration interface or agent console, click the user icon in the upper-right corner, and then select Logout from the drop-down list.
- Click OK at the confirmation message that displays.
- Access the Oracle Identity Cloud Service My Console, and then confirm that the login page appears. This confirms that SLO is working and that the user is no longer logged in to Retail Digital Commerce and Oracle Identity Cloud Service.
Troubleshooting
Oracle Identity Cloud Service may display the following message:
"You are not authorized to access the app. Contact your system administrator."
The two most likely causes are:
- The administrator revokes access for the user at the same time as the user tries to access Retail Digital Commerce using Oracle Identity Cloud Service. If this happens, access the Oracle Identity Cloud Service administration console, select Applications, Oracle Retail Digital Commerce Admin (or Oracle Retail Digital Commerce Agent), Users, and then click Assign to re-assign the user.
- The SAML 2.0 integration between the Oracle Identity Cloud Service and Retail Digital Commerce has been deactivated. In this case, access the Oracle Identity Cloud Service administration console, select Applications, Oracle Retail Digital Commerce Admin (or Oracle Retail Digital Commerce Agent), click Activate, and then click Activate Application. Oracle Identity Cloud Service displays a confirmation message.
For other issues, contact your Oracle representative.