opauth / opauth

Multi-provider authentication framework for PHP
http://opauth.org
MIT License
1.65k stars 243 forks source link

How do I choose the Google account, rather than have it log in for me? #97

Open ghost opened 9 years ago

ghost commented 9 years ago

I have the plugin successfully working; if I have a Google session going, it logs me in, or it redirects me to the Google sign-in page then logs me in through my app.

The trouble is, when I log out, there's no way for me to switch accounts if I have another Google account to log in with. When I click 'sign in with Google' again, it just logs me in automatically, rather than forgetting my previous connection and asking me to choose again.

Is there any way to force this?

t1mmen commented 9 years ago

You're probably looking for approval_prompt=force, as described on Stackoverflow

ceeram commented 9 years ago

perhaps we should default to this?

2014-11-21 7:15 GMT+01:00 Timm Stokke notifications@github.com:

You're probably looking for approval_prompt=force, as described on Stackoverflow http://stackoverflow.com/questions/8942340/get-refresh-token-google-api

— Reply to this email directly or view it on GitHub https://github.com/opauth/opauth/issues/97#issuecomment-63928685.

ceeram commented 9 years ago

Just tried myself with 1.0 version and it always asks to select the google account

2014-11-21 10:47 GMT+01:00 Ceeram c33ram@gmail.com:

perhaps we should default to this?

2014-11-21 7:15 GMT+01:00 Timm Stokke notifications@github.com:

You're probably looking for approval_prompt=force, as described on Stackoverflow http://stackoverflow.com/questions/8942340/get-refresh-token-google-api

— Reply to this email directly or view it on GitHub https://github.com/opauth/opauth/issues/97#issuecomment-63928685.