Okta integration
Before bootstrap, register an OIDC application for AI Gateway in Okta and assign the users who sign in.
To use Okta as the identity provider, register one web application for AI Gateway in Okta before bootstrap, and assign the users or groups who will use AI Gateway to that application.
For the redirect URI, scopes, and network constraints, follow IdP app registration in Bootstrap.
1. Create the application
Section titled “1. Create the application”The Okta screen names follow Okta’s Create OpenID Connect app integrations.
- In the Okta Admin Console, go to Applications and Resources → Applications and click Create App Integration. If Okta asks you to choose an experience, choose Classic experience.
- Select OIDC - OpenID Connect as the sign-in method and Web Application as the application type.
- Under Grant type, select Authorization code. Add the redirect URI to Sign-in redirect URIs.
- Leave Client authentication as Client secret. The Admin Console does
not show whether the secret is sent with HTTP Basic or POST. Okta uses
client_secret_basicunless another method is specified when the application is registered through the API (Okta: Client authentication methods), so select Basic in bootstrap step 3. A mismatch causes login to fail after setup completes.
2. Assign users
Section titled “2. Assign users”- On the application’s Assignments tab, click Assign and choose Assign to People or Assign to Groups (Okta: Assign app integrations). Add the first administrator account and any other users or groups that will use AI Gateway. Okta blocks login for accounts that are not assigned to the application.
- Review the application’s sign-in policy (Okta: App sign-in policies). If the policy requires an authenticator the first administrator has not enrolled, Okta asks them to enroll it, and rejects the login when the enrollment policy does not allow it.
Values to enter at bootstrap
Section titled “Values to enter at bootstrap”In bootstrap step 3, select Okta and enter the following values.
| Field | Value |
|---|---|
| Issuer URL | The Okta org root (https://<org>.okta.com) or a custom authorization server (https://<org>.okta.com/oauth2/<id>) (Okta: Authorization servers). Only https:// issuers are accepted. |
| Client ID | The application’s Client ID |
| Client secret | The application’s Client Secret |
| Client authentication method | Basic for an application created in the Admin Console (step 1.4) |
To sync Okta users and groups as AI Gateway members and teams, see Okta user provisioning.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause and action |
|---|---|
| Login blocked on the Okta sign-in screen | The account is not assigned to the AI Gateway application, or the application’s sign-in policy requires an authenticator the account cannot satisfy. Find the specific reason in Reports → System Log (Okta: System Log). |
| Issuer URL rejected at step 3 | Check that the URL starts with https:// and equals the issuer value in <issuer URL>/.well-known/openid-configuration. |