-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(oauth2): google oauth2 whitelisting. (#11372)
* Update release step3 * fix(oauth2): Fix google oauth2 whitelisting. The variable is a tuple and should be managed as such Signed-off-by: Julien Godin <[email protected]> --------- Signed-off-by: Julien Godin <[email protected]> Co-authored-by: Cody Maffucci <[email protected]>
- Loading branch information
1 parent
b0e2819
commit d7dff9e
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,12 +86,24 @@ to be created. Closely follow the steps below to guarantee success. | |
DD_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS = ['example.com', 'example.org'] | ||
{{< /highlight >}} | ||
|
||
As an environment variable: | ||
|
||
{{< highlight python >}} | ||
DD_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS = example.com,example.org | ||
{{< /highlight >}} | ||
|
||
or | ||
|
||
{{< highlight python >}} | ||
DD_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_EMAILS = ['<[email protected]>'] | ||
{{< /highlight >}} | ||
|
||
As an environment variable: | ||
|
||
{{< highlight python >}} | ||
DD_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_EMAILS = [email protected],[email protected] | ||
{{< /highlight >}} | ||
|
||
## OKTA | ||
|
||
In a similar fashion to that of Google, using OKTA as a OAuth2 provider | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters