| Environment Variable | Description | Default Value | Other |
|---|---|---|---|
| OKTA_ENABLE | Whether to enable Okta login service | Supported from version v2.1.24. Set to "true" to enable, or leave blank or unset to disable | |
| OKTA_CLIENT_ID | Okta application ID | Must be filled in when Okta service is enabled | |
| OKTA_CLIENT_SECRET | Okta application access secret | Must be filled in when Okta service is enabled | |
| OKTA_DOMAIN | Okta API access domain | Must be filled in when Okta service is enabled | |
| OKTA_LOGIN_USER_ID_ATTR | Default value is "id", used as the unique ID for Okta user attributes | id | Optional |
okta.users.read.self to Granted.Account synchronization: After a successful initial login authorization with Okta, Apidog will attempt to initialize the account using the Okta email and username. 1.Binding to an Existing Account: If an email from Okta matches an existing Apidog account, the Okta user will be directly bound to that account to prevent one user from occupying multiple accounts. If you need to bind to an existing account, log in with your username and password, modify the email in the Account Settings to match the Okta email, and then use Okta for subsequent logins. 2.Duplicate Usernames: If the initial Okta username conflicts with an existing Apidog username, the Okta username will be modified to {okta_username}_{timestamp}to avoid duplication. After the initial login, you can change the username in your Account Settings.
OKTA_ENABLE="true"
OKTA_LOGIN_USER_ID_ATTR="id" // Default is "id"
OKTA_CLIENT_ID="Client ID" // Corresponds to label 1 in the screenshot below
OKTA_CLIENT_SECRET="Client Secret" // Corresponds to label 2 in the screenshot below
OKTA_DOMAIN="Okta domain" // Corresponds to label 3 in the screenshot below
Note: The "Screenshot" mentioned above refers to a visual presentation containing the specified labels referring to certain elements or attributes.