问题
Recently implemented Google sign-in in my local dev. Everything works fine, except when I choose one of my Google accounts to log in, the consent screen does not show up. It does get authorized, as I can see my website in Apps connected to your account section of My Account.
I have already configured OAuth consent screen under Credentials section of APIs & Services console. Not sure why it's not showing up? I tried sending approval_prompt=force but it had no effect. Also tried prompt=select_account+consent which give me an error.
Some addititonal info:
authorization_url=https://accounts.google.com/o/oauth2/v2/authbase_url=https://www.googleapis.com/oauth2/v3/userinfoaccess_token_url=https://www.googleapis.com/oauth2/v4/token
回答1:
By design, the consent screen is not shown in the scenario described (account selection with profile/email scopes).
I'm on the product team at Google and we removed the consent screen (the "Allow/Deny" screen showing the data being shared) in cases where only email and/or profile scopes are requested and the user explicitly selects their Google Account, since the account selection UI already shows the email and profile (name/picture) information that will be shared with the app.
来源:https://stackoverflow.com/questions/46328962/oauth-consent-screen-not-showing