Cognito Authorize Endpoint For federated users


I am using the cognito authorize endpoint and using 'identity_provider' query parameter to bypass the hosted UI and allowing users to authenticate directly with their identity provider (in this case, Google). When a user is already authenticated with Google and clicks on "Sign in with Google" again, I want to provide them with the option to select from multiple Google accounts rather than automatically signing them in.

asked 3 months ago258 views
1 Answer

Hi Zeeshan,

For that, you can use the prompt parameter in your authorization URL and set its value to select_account. This will force the user to choose an account, even if they are already logged in. Here's an example of how you might construct your authorization URL:
profile picture
answered 3 months ago
  • Does not work for me. Prompt param is not passed to Google /auth endpoint

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions