-
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): Fix google oauth2 whitelisting.
The variable is a tuple and should be managed as such Signed-off-by: Julien Godin <[email protected]>
- Loading branch information
1 parent
0882320
commit 0f2e632
Showing
3 changed files
with
15 additions
and
3 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] | ||
{{< /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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1b1f0b7210b79790c2bf1a3fdb62e24521544600bb4b460ed6a15cfd26f68640 | ||
21dbb927fc11808947edca13dc908fc7fc2b905563e50e6af7a18ca6deb75dd9 |
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