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 9001615
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 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,16 @@

# Django Crispy Forms configuration
CRISPY_TEMPLATE_PACK = 'bootstrap3'

# Settings for Facebook OAuth
SOCIALACCOUNT_PROVIDERS = \
{'facebook': {'METHOD': 'oauth2',
'SDK_URL': '//connect.facebook.net/{locale}/sdk.js',
'SCOPE': ['email', 'public_profile'],
'AUTH_PARAMS': {'auth_type': 'reauthenticate'},
'INIT_PARAMS': {'cookie': True},
'FIELDS': ['id', 'email', 'locale'],
'EXCHANGE_TOKEN': True,
'LOCALE_FUNC': 'path.to.callable',
'VERIFIED_EMAIL': False,
'VERSION': 'v7.0'}}

0 comments on commit 9001615

Please sign in to comment.