Setting Up Integration with Okta Using SAML
Note: The IDP version 1.2-71 is required for integration with Okta.
Step 1. Choose a Brand
- Enable the Identity Service.
- Select an existing brand for which you plan to set up the integration, for example, "mybrand.com".
Step 2. Create a SAML in Okta
- Log in to Okta admin panel.
- Go to Applications, click Create App Integration and select SAML 2.0.
- On the General Settings step, specify the application name as "oss-brand-<brand domain>".
- On the Configure SAML step, enter the following values:
Parameter Value Single sign on URL https://<brand_domain>/auth/realms/sr<brand_id>/broker/saml/endpoint Use this for Recipient URL and Destination URL Select this checkbox Audience URI (SP Entity ID) https://<brand_domain>/auth/realms/sr<brand_id> Name ID format EmailAddress Application username Okta username
Where: <brand_id> is the brand identifier in CloudBlue Commerce. - Under Attribute Statement, define a custom attribute, for example, cbcLogin with the user.login value. For additional information, refer to How to define and configure a custom SAML attribute statement.
- On the next step, mark this app as internal and click Finish.
- Click View Setup Instructions to display basic configuration parameters, which you will use later:
- Identity Provider Single Sign-On URL
- X.509 Certificate
- In the Applications > Assignments tab, assign People or Groups to this application.
Step 3. Configure External IDP Service
- Log in to the PCP, then go to Services > Identity Service.
- In the External IDP Service tab, select a brand.
-
Check the External IDP service enabled checkbox and specify these parameters:
Parameter Example Notes External IDP Login URL https://ya-cbc.okta.com/app/ya-cbc_cloudbluecommerce_1/exk4kq59vMPxORuFq695/sso/saml The Identity Provider Single Sign-On URL value from Step 2 External IDP Logout URL https://ya-cbc.okta.com/app/ya-cbc_cloudbluecommerce_1/exk4kq59vMPxORuFq695/sso/saml The Identity Provider Single Sign-On URL value from Step 2 External IDP display name Okta A human-readable name External IDP certificate in PEM format -----BEGIN CERTIFICATE-----
<...> ....
-----END CERTIFICATE-----The X.509 Certificate) value from Step 2 External IDP username SAML assertion attribute cbcLogin The custom attribute value from Step 2
Step 4. Create a User
Now, you can create a user in CloudBlue Commerce. The user log-in name must be equal to the value of the SAML assertion attribute set for External IDP username SAML assertion attribute at the previous step.
Important: Users are not created automatically, they must be created beforehand in CloudBlue Commerce.