Open yles9056 opened 5 years ago
I want to do exactly same thing. Please let me know if you get any solution. Thanks
@divyarajpurohit This did it for us:
In settings.py
# force asking the user which account to use
SOCIAL_AUTH_GOOGLE_OAUTH2_AUTH_EXTRA_ARGUMENTS = {'prompt': 'select_account'}
Thanks you, this is what i actually was looking for. Is this type of code available for fb, linkedIn and twitter as well?
Is this type of code available for fb, linkedIn and twitter as well?
I can't speak to fb or twitter, but I spent a few hours trying to track it down for linkedin and concluded it doesn't exist.
I had a problem with my django website when switching between different Google accounts.
My website uses Google OAuth2.0 for authentication. First, I logged in with a Google account(userA). Then, I logged out from my website and tried to log in with another Google account(userB). But I was automatically logged in as userA when I pressed the login button. I had to clear all browser cookies manually in order to login as userB.
Some data was not cleared when userA logged out. What setting do I need to change? I don't think disconnecting is what I am looking for. I just need to switch to different Google account.
setting.py
urls.py
testLogin.html (Index page for testing social auth)