python - Adding permissions to django-allauth's OAuth token -
when using django-allauth, oauth handshake various social services handed automatically. in process add privileges oatuh token returned?
for example, when using allauth github, login prompt on github "grants read-only access public information", default , minimum level of access. how pass additional scopes oauth handshake managed allauth?
allauth lets pass parameters auth handshake using auth_params
key in settings of social account provider. example, put following in settings.py add repo scope returned github token:
socialaccount_providers = { "github": { "auth_params": {"scope": "repo"} }, }
Comments
Post a Comment