Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Commit

Permalink
Added OAuth Settings for Facebook
Browse files Browse the repository at this point in the history
  • Loading branch information
ritwickraj78 committed Jun 2, 2020
1 parent b5b6de9 commit f467cdd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions systers_portal/systers_portal/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,14 @@

# Django Crispy Forms configuration
CRISPY_TEMPLATE_PACK = 'bootstrap3'

# Settings for Facebook OAuth
SOCIALACCOUNT_PROVIDERS = \
{'facebook': {'METHOD': 'oauth2',
'SCOPE': ['email'],
'AUTH_PARAMS': {'auth_type': 'reauthenticate'},
'FIELDS': ['id', 'email'],
'EXCHANGE_TOKEN': True,
'LOCALE_FUNC': lambda request: 'kr_KR',
'VERIFIED_EMAIL': False,
'VERSION': 'v2.4'}}

0 comments on commit f467cdd

Please sign in to comment.