django - Have multiple accpunts on the same provider in python-social-auth -
i using python-social-auth
bundle authenthication in django site. want users able associate multiple social accounts on django account. if phone call social:begin
view when user logged in business relationship same provider, nil , logs in old account. there way tell forcefulness adding of new business relationship provider?
thanks.
you need tell provider want show user "select account" form 1 time again (when possible, since provider dependent), or inquire user logout original business relationship if wants add together association.
for example, google-oauth2
can adding setting
social_auth_google_oauth2_auth_extra_arguments = { 'prompt': 'select_account' }
you can play other option:
social_auth_google_oauth2_auth_extra_arguments = { 'approval_prompt': 'force' }
python django python-social-auth
No comments:
Post a Comment