16 Feb
2021
16 Feb
'21
11:40 p.m.
On 2/16/21 4:46 AM, Matthew Alberti wrote:
I think each plugin has to be configured separately, such as with an API key from each service.
For what it's worth, this list supports 4 Oauth2 providers, Google, Facebook, Github and Gitlab. 3 of these require stuff in Django's settings
SOCIALACCOUNT_PROVIDERS = {
'google': {
'SCOPE': ['profile', 'email'],
'AUTH_PARAMS': {'access_type': 'online'},
},
'facebook': {
'METHOD': 'oauth2',
'SCOPE': ['email'],
'FIELDS': [
'email',
'name',
'first_name',
'last_name',
'locale',
'timezone',
],
'VERSION': 'v2.12',
},
'gitlab': {
'SCOPE': ['read_user'],
},
}
Additionly, each requires creation of an app with the provider and
addition of the app and its keys in the Django admin UI at
socialaccount/socialapp/. See
<https://django-allauth.readthedocs.io/en/latest/providers.html> for
more info on setting up specific providers.
--
Mark Sapiro <mark@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan