This repository was archived by the owner on Sep 17, 2021. It is now read-only.
Google SSO fixes + limiting to hosted domain #412
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I couldn't make Google SSO work (on Google Apps For Work) without a few modifications that were done according to the public documentation on Google's OpenId Connect : https://developers.google.com/identity/protocols/OpenIDConnect
Tests were made using
GOOGLE_AUTH_ENDPOINT = 'https://accounts.google.com/o/oauth2/v2/auth'
I did not test it against any other Google SSO.
In addition I added the ability to limit to specific hosted domain - which is useful if you're using Google Apps For Work on your domain and want to limit access to the only users of your domain.
There is a new configuration option for that:
GOOGLE_HOSTED_DOMAIN = 'mydomain.org'