Skip to main content
Version: 10

Single Sign-On via a custom OpenID provider

Creatio can be integrated with any identity provider that supports the OpenID Connect protocol, for example, Okta, Keycloak, or Auth0. You can use your provider as a Single Sign-On point for all your services, including Creatio. To do this, perform the setup in both your provider and Creatio. For Microsoft Entra AD, Cognito AWS, Okta, and AD FS, use the dedicated provider types.

Important

This example uses the https://site01.creatio.com/ Creatio URL. Replace this value with your website URL when you perform the actual setup.

The following steps are the general procedure required to set up Single Sign-On in Creatio:

  1. Perform the setup in your provider. Read more >>>
  2. Perform the setup in Creatio. Read more >>>

Perform the setup in your provider​

  1. Log in to your provider using an administrator account.
  2. Create an application (client) for the Creatio website. Select "Authorization code" as the grant type.
  3. Enter https://site01.creatio.com/ServiceModel/AuthService.svc/OpenIdCallback as the redirect URI. Use the website root without /0/.
  4. Enter https://site01.creatio.com/ServiceModel/AuthService.svc/OpenIdLogoutCallback as the post-logout redirect URI. Creatio needs it to sign users out of the identity provider.
  5. Select the openid, profile, email, and phone scopes. Creatio requests all four scopes.
  6. Save the following data to perform the setup in Creatio:

Parameter

Parameter Value

Client ID

The ID of the application in the identity provider.

Client Secret

The secret of the application in the identity provider.

Perform the setup in Creatio​

note

To set up SSO, you need permission to the "SSO setup" (CanManageSso code) system operation. Out of the box, system administrators have this permission.

Follow these steps to set up Single Sign-On in Creatio:

  1. Click the button to open the System Designer.
  2. Click Single Sign On configuration.
  3. Click . This opens a drop-down menu.
  4. Select "Custom OpenID." This opens the setup page (Fig. 1).
  5. Fill out the following parameters:

Parameter

Parameter Value

Client ID

The ID of the application. Retrieved while setting the identity provider up.

Client Secret

Optional. The secret of the application. Retrieved while setting the identity provider up.

URL

The domain of the identity provider without a path or subdirectory.

Discovery URL

Optional. The URL of the identity provider discovery document. Fill out the field in the Additional settings group if the provider does not use the standard [URL]/.well-known/openid-configuration address.

End session endpoint URL

Optional. The URL of the identity provider's single sign-off. Fill out the field in the Additional settings group if the provider does not use the standard [URL]/logout address.

Fig. 1 Custom OpenID provider page
Fig. 1 Custom OpenID provider page
  1. Fill out the provider name to display on the Creatio login page in the Display name field.
  2. Enable auto-login (optional). Available for Creatio 10.2 and later. Auto-login sends users to the identity provider directly. To do this, select the Auto-login checkbox. When users open the [Creatio URL]?autoOpenIdLogin=true&providerCode=[provider code] link, Creatio opens the login page of this identity provider directly, without the Creatio login page. The autoOpenIdLogin parameter is case-sensitive. If the link has no providerCode parameter, Creatio uses the default provider specified in the "Default SSO provider" (DefaultSsoProvider code) system setting.
  3. Save the changes.
  4. Set up user matching rules (optional). Creatio finds the user who logs in using an OpenID provider using the OIDC user matching rules list on the Single Sign-On Settings page. Creatio evaluates the rules in ascending order of the Order column and applies the first rule that matches a user. Learn more: Just-In-Time User Provisioning.
  5. Enable Just-In-Time Provisioning (optional). This mechanism automatically creates the corresponding Creatio user account with data from the identity provider and updates the data on each login. For company employees, select the Create and update company employees data when log in (Just-In-Time Provisioning) checkbox on the Single Sign-On Settings page. For external users, select the Create and update external users data when log in (Just-In-Time Provisioning) checkbox (Fig. 2).
Fig. 2 Set up Just-In-Time Provisioning
Fig. 2 Set up Just-In-Time Provisioning
  1. Log users out of the identity provider (optional). To do this, select the Sign out from identity provider when signing out from Creatio checkbox on the Single Sign-On Settings page. The setting applies to all providers of the website.
  2. Define your provider (optional). To do this, specify the provider in the "Default SSO provider" (DefaultSsoProvider code) system setting. Learn more: Manage system settings.
  3. Test whether the provider works correctly (optional). To do this, open the Creatio login page in a private browser window and click the login link with the provider name.

As a result, the login page shows a login link with the display name of the provider, and users can log in to Creatio with their identity provider accounts. To end Creatio sessions as soon as a user is logged out or deactivated in the identity provider, enable security events. Learn more: Receive security events from your OpenID provider.

Register the provider automatically​

note

This functionality is available for Creatio 10.1 and later.

Configure SSO on a new environment as part of an automated provisioning flow without registering the provider by hand. To do this, register the OpenID provider using the api/SsoProvider/Register endpoint or the register-sso-provider command of the Clio utility. The registration is create-only and atomic: Creatio creates and turns on the provider in one call and does not save a partial record if any step fails. To change an existing provider, use the Single Sign-On Settings page.

The user who registers the provider needs permission to the "Register SSO provider" (CanRegisterSsoProvider code) system operation.

To register the provider using Clio, run the following command:

clio register-sso-provider -e [environment name] --code [provider code] --name [display name] --issuer-url [issuer URL] --oidc-client-id [client ID]

Parameter

Parameter Value

--code

Required. The unique provider code. Use Latin letters, digits, and the ., _, - characters, up to 64 characters.

--name

Required. The provider name to display on the Creatio login page.

--issuer-url

Required. The issuer URL of the identity provider. Use the https:// protocol.

--oidc-client-id

Required. The client ID of the application in the identity provider.

--oidc-client-secret-file, --oidc-client-secret

Optional. The client secret of the application. To keep the secret out of the shell history, use the file or the CLIO_OIDC_CLIENT_SECRET environment variable instead of --oidc-client-secret.

--discovery-url

Optional. The discovery document URL. Specify it if the identity provider does not use the standard [issuer URL]/.well-known/openid-configuration address.

--logout-url

Optional. The end session endpoint URL.

Creatio checks the discovery document of the identity provider before it saves the provider. If the code already exists, a required parameter is missing, or the discovery document is unreachable, Creatio returns a validation error and creates no record. Learn more: register-sso-provider (GitHub).

Available for Creatio 10.2 and later. A provider registered using the API has auto-login disabled. To enable it, select the Auto-login checkbox on the provider page.


See also​

Single Sign-On

Single Sign-On via Cognito AWS

Just-In-Time User Provisioning