Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
Limit Google auth to mozilla.com domains but show account selector to…
Browse files Browse the repository at this point in the history
… prevent fully automated login
  • Loading branch information
jezdez committed Sep 20, 2016
1 parent 5af8d85 commit 9d66b87
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions atmo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,15 @@
SOCIALACCOUNT_EMAIL_VERIFICATION = 'none' # no extra verification needed
SOCIALACCOUNT_QUERY_EMAIL = True # needed by the Google provider

SOCIALACCOUNT_PROVIDERS = {
'google': {
'HOSTED_DOMAIN': 'mozilla.com',
'AUTH_PARAMS': {
'prompt': 'select_account',
}
}
}

# Internationalization
# https://docs.djangoproject.com/en/1.9/topics/i18n/
LANGUAGE_CODE = config('LANGUAGE_CODE', default='en-us')
Expand Down

0 comments on commit 9d66b87

Please sign in to comment.