'allauth.socialaccount',
'allauth.socialaccount.providers.openid',
'allauth.socialaccount.providers.facebook',
+ 'allauth.socialaccount.providers.google',
# 'allauth.socialaccount.providers.twitter',
]
SOCIALACCOUNT_PROVIDERS = {
'openid': {
- 'SERVERS': [{
- 'id': 'google',
- 'name': 'Google',
- 'openid_url': 'https://www.google.com/accounts/o8/id'}],
+ 'SERVERS': [],
+ },
+ 'google': {
+ 'AUTH_PARAMS': {
+ 'access_type': 'online',
+ }
+ },
+ 'facebook': {
+ 'METHOD': 'oauth2',
+ 'SCOPE': ['email', 'public_profile'],
+ # 'AUTH_PARAMS': {'auth_type': 'reauthenticate'},
+ # 'INIT_PARAMS': {'cookie': True},
+ # 'FIELDS': [
+ # 'id',
+ # 'email',
+ # 'name',
+ # 'first_name',
+ # 'last_name',
+ # 'verified',
+ # 'locale',
+ # 'timezone',
+ # 'link',
+ # 'gender',
+ # 'updated_time',
+ # ],
+ # 'EXCHANGE_TOKEN': True,
+ # 'LOCALE_FUNC': 'path.to.callable',
+ # 'VERIFIED_EMAIL': False,
+ # 'VERSION': 'v2.12',
},
}