Skip to content

Specific example for google auth? #9078

Answered by ppbrown
ppbrown asked this question in Q&A
Discussion options

You must be logged in to vote

Not nice that I had to sort of guess where to put this.
Seems like it works, if I just stuff
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = 'xxxx'
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = 'xxxx'

right after
REMOTE_AUTH_BACKEND = 'social_core.backends.google.GoogleOAuth2'
in configuration.py

Side note, that isnt directly part of my original question, but still quite important:
It wont let you just make up your own internal DNS FQDNs. Google oauth2 insists on a recognizable top level domain like ".com" ...
even if it cant resolve privateserver.yourdomain.com

Otherwise it kvetches about "server does not meet google oauth2 security standards". which makes no sense to me, but...

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ppbrown
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants