Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Google middleware authorization should use prompt instead of approval_prompt #971

Closed
@hempels

Description

@hempels

I see support in GoogleHandler.BuildChallengeUrl for approval_prompt via:
AddQueryString(queryStrings, properties, "approval_prompt");

First, I can't figure out how to apply that property. Setting it in CookieAuthenticationEvents.OnSigningIn doesn't seem to cause any different behavior by Google.

Second, it's not the right property. Google deprecated it in favor of prompt, which has four possible values: "none", "consent", "select_account", or "select_account consent".
see: https://developers.google.com/identity/protocols/OAuth2WebServer

I've managed to work around this limitation by adding ?prompt=select_account to the AuthorizationEndpoint in GoogleOptions, but it's a pretty ugly hack.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions