Skip to content

Commit

Permalink
try new settings (#9525)
Browse files Browse the repository at this point in the history
  • Loading branch information
chibie authored Sep 24, 2021
1 parent 2df4a6b commit e14dbb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,8 @@ def callback(request):
SOCIAL_AUTH_ADMIN_USER_SEARCH_FIELDS = ['username', 'first_name', 'last_name', 'email']
SOCIAL_AUTH_GITHUB_SCOPE = ['read:user', 'user:email']
SOCIAL_AUTH_SANITIZE_REDIRECTS = True
# SOCIAL_AUTH_REDIRECT_IS_HTTPS = True if ENV in ['prod', 'test', 'stage'] else False
SOCIAL_AUTH_REDIRECT_IS_HTTPS = True if ENV in ['prod', 'test', 'stage'] else False
SOCIAL_AUTH_FIELDS_STORED_IN_SESSION = ['state']

#custom scopes
SOCIAL_AUTH_GH_CUSTOM_KEY = GITHUB_CLIENT_ID
Expand Down

0 comments on commit e14dbb3

Please sign in to comment.