-
-
Notifications
You must be signed in to change notification settings - Fork 108
Add IdP setup instructions to backend documentation #363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
4850870
bda0367
bb3e6a3
84fbc4d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6,25 +6,49 @@ This section describes how to setup the different services provided by Okta. | |||||
| Okta OAuth2 | ||||||
| ----------- | ||||||
|
|
||||||
| To enable OAuth2 support: | ||||||
| IdP Setup | ||||||
| ^^^^^^^^^ | ||||||
|
|
||||||
| - Fill ``Client ID``, ``Client Secret`` and `API URL (e.g. | ||||||
| https://dev-000000.oktapreview.com/oauth2)` settings, these values can be | ||||||
| obtained easily from Okta after creating a Web application. Please note, do | ||||||
| not use the ``/oauth2/default`` endpoint for Okta authentication:: | ||||||
| To configure Okta for OAuth2: | ||||||
|
|
||||||
| SOCIAL_AUTH_OKTA_OAUTH2_KEY = '' | ||||||
| SOCIAL_AUTH_OKTA_OAUTH2_SECRET = '' | ||||||
| SOCIAL_AUTH_OKTA_OAUTH2_API_URL = '' | ||||||
| 1. Log into your Okta Admin Console | ||||||
| 2. Navigate to **Applications** > **Create App Integration** | ||||||
| 3. Select **OIDC - OpenID Connect** and **Web Application** | ||||||
| 4. Set the **Sign-in redirect URI** to:: | ||||||
|
|
||||||
| https://your-domain.com/complete/okta-oauth2/ | ||||||
|
|
||||||
| 5. Save and note the **Client ID**, **Client Secret**, and **Okta domain** (e.g., ``https://dev-123456.okta.com``) | ||||||
|
|
||||||
| .. important:: | ||||||
| Do NOT use the ``/oauth2/default`` endpoint for Okta authentication. | ||||||
|
|
||||||
| Application Configuration | ||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||||||
|
|
||||||
| Fill ``Client ID``, ``Client Secret`` and ``API URL (e.g. | ||||||
| https://dev-000000.oktapreview.com/oauth2)`` settings with the values from the IdP setup above:: | ||||||
|
|
||||||
| SOCIAL_AUTH_OKTA_OAUTH2_KEY = '' | ||||||
| SOCIAL_AUTH_OKTA_OAUTH2_SECRET = '' | ||||||
| SOCIAL_AUTH_OKTA_OAUTH2_API_URL = '' | ||||||
|
|
||||||
| Okta OpenId Connect | ||||||
|
||||||
| Okta OpenId Connect | |
| Okta OpenID Connect |
Copilot
AI
Nov 10, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example domain in the configuration comment uses https://dev-000000.oktapreview.com/oauth2 which is the deprecated Okta preview domain. This should be updated to use the modern format like https://dev-123456.okta.com/oauth2 to match the IdP Setup instructions and current Okta practices.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistency in domain example format. Line 21 uses
https://dev-123456.okta.comwhile line 30 useshttps://dev-000000.oktapreview.com. Consider using consistent domain examples throughout (prefer the newerokta.comformat over the deprecatedoktapreview.comsubdomain).