Forcing a user to choose an account via Google OAuth2

后端 未结 2 2001
感动是毒
感动是毒 2021-01-04 03:33

I have the following workflow in my application:

  1. user logs into my custom app
  2. user clicks a button to link their YouTube account
  3. applicatio
相关标签:
2条回答
  • 2021-01-04 03:56

    In the first comment, @Hans gave the correct link to the similar topic. However, if it doesnt help, then here is solution:

    just add &prompt=consent parameter in requesting google's url.

    0 讨论(0)
  • 2021-01-04 04:01

    I think you can add some parameter in the url to tell google to show the consent screen with the user accounts instead of assuming the default google account.

    This can be done by adding prompt=select_account+consent ("+" is added as a part of url encoding) in the url.

    I did not try this till now but maybe you can try.

    0 讨论(0)
提交回复
热议问题