Skip to main content
Version: 4.x

Use OIDC SSO

PhoenixAI supports user authentication using OpenID Connect (OIDC) single sign-on (SSO).

important
  • Only console users with the Account admin role can configure OIDC SSO.
  • SAML SSO and OIDC SSO are mutually exclusive. Disable SAML SSO before you enable OIDC SSO.

Enable OIDC SSO

The following tutorial provides examples for Okta, AWS, and Google.

Step 1: Prepare PhoenixAI Redirect URL

  1. Sign in to the PhoenixAI Cloud console as the account administrator.
  2. In the left-side navigation pane, choose Account > Account settings.
  3. On the Single sign-on tab of the Account settings page, click Configure in the OIDC section to display the Configure OIDC dialog box.
  4. In the Configure OIDC dialog box, click the Copy icon next to the PhoenixAI redirect URL field and save the URL properly.

Enable OIDC SSO

note

Do not close the PhoenixAI Cloud console. You will need to complete further configurations on the console in the following steps.

Step 2: Set up your IdP

Follow these steps to set up your IdP:

  1. Sign in to the Okta Administration console as a member with administrator privileges.

  2. In the left-side navigation pane, choose Applications > Applications.

  3. On the Applications page, click Create App Integration to display the Create a new app integration dialog box.

  4. In the Create a new app integration dialog box, choose OIDC - OpenID Connect for Sign-in method, and choose Web Application for Application type.

    Set up your IdP

  5. Click Next.

  6. On the General Settings section of the New Web App Integration page, enter a name for your application, select Client Credentials for Client acting on behalf of itself, and select Authorization Code and Refresh Token for Core grants.

    Set up your IdP

  7. Paste the PhoenixAI redirect URL to the Sign-in redirect URIs section of the New Web App Integration page.

    Set up your IdP

  8. On the Assignments section of the New Web App Integration page, select Limit access to selected groups for Controlled access, search and select groups in the Selected group(s) field, and click Save.

    Set up your IdP

  9. In the left-side navigation pane of the Okta console, choose Applications > Applications.

  10. On the Applications page, click the application you have created to enter the application detail page.

  11. In the Client Credentials section of the General tab, copy the Client ID and save it properly. Then, click Edit in the section, select Require PKCE as additional verification for Proof Key for Code Exchange (PKCE), and click Save.

  12. In the CLIENT SECRETS section of the General tab, copy the client secret value and save it properly.

    Prepare IdP settings

  13. In the Federation Broker Mode section of the General tab, click Edit, and click Enable Federation Broker Mode. In the message that appears, click Continue. Then, click Save.

    Prepare IdP settings

  14. On the Applications page, click Assign Users to APP.

  15. On the Assign Apps to People tab of the Assign Applications page, configure as follows:

a. In the Applications section, select the application you have created.

b. In the People section, select the user to whom you want to assign the application.

c. Click Next.

  1. On the Confirm Assignments tab of the Assign Applications page, click Confirm Assignments.
important

Refresh Token must be enabled on your web application. Without it, sessions cannot be silently renewed and users get bounced back to the IdP every time the id_token expires (typically every hour).

  • On Okta, you need to select the Refresh Token checkbox under Grant type.
  • On Google Workspace, set access_type=offline and prompt=consent (the literal offline_access scope is rejected by Google).
  • For other IdPs, use equivalent options (for example, include offline_access in the requested scopes).

Step 3: Configure and enable OIDC SSO on PhoenixAI

  1. Return to the Configure OIDC dialog box on your PhoenixAI Cloud console.

  2. Paste the client ID of your web application you have copied to the Client ID field.

  3. Paste the client secret of your web application you have copied to the Client Secret field.

  4. Specify the Discovery URL (the OIDC discovery document path, or the well-known OpenID configuration path) for your IdP. The following table list the Discovery URL format for Okra and Google. For other IdPs, you can refer to the corresponding official documents.

    IdPDiscovery URL
    Oktahttps://<your-tenant>.okta.com/.well-known/openid-configuration (Replace <your-tenant> with your actual tenant.)
    AWShttps://cognito-idp.<aws_region>.amazonaws.com/<user_pool_id>/.well-known/openid-configuration (Replace <aws_region> with your AWS region ID, and <user_pool_id> with your actual user pool ID.)
    Googlehttps://accounts.google.com/.well-known/openid-configuration
  5. Specify email in the Username Claim unless your IdP uses a different field for authentication.

  6. Click Submit.

  7. On the Single sign-on tab of the Account settings page, click Test SSO to test the connectivity of your OIDC configuration.

  8. On the page that appears, log in to your IdP, and you will be redirect to the PhoenixAI Cloud console if the login succeeds.

  9. When the test passed, click Enable on the Single sign-on tab of the Account settings page.