Using OKTA for authentication
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 |
1. Create an Application
2. Set up application
3. Configure Users and Permissions
In Okta Api Scopes, allow logged-in users to retrieve their personal information. Set okta.users.read.self to Granted.
Account synchronization:
After a successful initial login authorization with Okta, the Apidog service will attempt to initialize the account using the Okta email and username.1.Binding to an existing account: If a matching email is already registered with an Apidog account, to avoid one user occupying multiple accounts, the current Okta user will be directly bound to the Apidog account corresponding to this email. If a registered user needs to bind, please log in with the username and password, and then modify the email in the account settings to ensure consistency with the Okta email before using Okta to log in. 2.Duplicate usernames: If the initial username conflicts with another Apidog user, it will be set as { okta username }_{ timestamp } to differentiate it. After successful login, the username can be modified in the account settings.
4. Server Configuration
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.
Modified at 2024-07-02 09:50:15