Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cognigy.com/llms.txt

Use this file to discover all available pages before exploring further.

Cognigy.AI integrates with popular identity providers (IdPs) to let users in your organization log in with single sign-on (SSO) without the need for individual credentials. You can use the following IdPs: For more information about about protocol-level details, see Single Sign-on with SAML 2.0.

Prerequisites

  • An account with the admin role in Cognigy.AI.
  • The organization ID of your Cognigy.AI organization, referred to as <organization-id> in the examples. You can copy this ID from the My Profile page by clicking vertical-ellipsis > Copy Organization ID.
  • The API base URL of your Cognigy.AI installation, referred to as <api-base-url> in the examples.
  • Your Cognigy.AI URL, referred to as <cognigy-url> in the examples. For example, for the trial environment, this URL is https://trial.cognigy.ai/.
  • An API key for sending configuration requests to the Cognigy.AI API.
  • Administrator access to the IdP tenant that you want to integrate with Cognigy.AI.
  • For Okta, you need an X.509 certificate. For more information, read Okta’s documentation about app certificate use.

Limitations

  • An organization can have only one SSO configuration. To replace an SSO configuration, delete it, then create another one. For more information, read Change an SSO Configuration in Cognigy.AI.
  • Only Microsoft Entra ID and OneLogin support single logout for Cognigy.AI.

Create an IdP App

To configure an IdP app, follow these steps:
  1. Log in to the Auth0 Dashboard and select your tenant.
  2. In the left-side menu, go to Applications > Applications and click + Create Application.
  3. Enter a name, for example, Cognigy.AI, select Regular Web Applications as the app type, and click Create.
  4. Go to the Settings tab and copy the values from the fields in the Basic Information section. You will use them later to configure the IdP in Cognigy.AI:
    • Domain — used in the idpIssuer parameter in the request payload.
    • Client ID — used in the idpClientId parameter in the request payload.
    • Client Secret — used in the idpClientSecret parameter in the request payload.
  5. On the Settings tab, configure the following using the API base URL and organization ID from the Prerequisites section:
    • Application Login URI — enter https://<api-base-url>/auth/oidc/callback/<organization-id>.
    • Allowed Callback URLs — enter https://<api-base-url>/auth/oidc/login/callback/<organization-id>.
    • Allowed Logout URLs — enter https://<api-base-url>/logout/<organization-id>.
    • Allowed Web Origins — enter https://*.cognigy.ai.
    • Allowed Origins (CORS) — enter https://*.cognigy.ai.

Configure SSO in Cognigy.AI

After the SSO app is ready, use the POST /v2.0/identityprovider/configure method to register the SSO configuration in Cognigy.AI.
Send the API request with the following parameters:
  -H "Content-Type: application/json" \
  -H "X-API-Key: <your-api-token>" \
  -d '{
    "idpType": "oidc",
    "idpIssuer": "<DOMAIN>",
    "idpClientId": "<CLIENT ID>",
    "idpClientSecret": "<CLIENT SECRET>",
    "idpIdTokenSignedResponseAlg": "RS256",
    "idpTokenEndpointAuthMethod": "client_secret_basic"
  }'
A successful request returns a confirmation that the identity provider configuration has been saved. The Cognigy.AI login page now displays a Log in with SSO button for users in your organization.

Test the SSO Login

  1. On the Cognigy.AI login page, enter the email address of a user assigned to the IdP app and click Log in with SSO. Cognigy.AI redirects you to the IdP and prompts you for your IdP credentials. After authentication, the IdP redirects back to Cognigy.AI and logs you in.
  2. Click the user icon in the lower-left corner and select Logout.
  3. Enter your email address again and click Log in with SSO. This time, you are logged in directly without re-entering your IdP credentials.

More Information