Cognito Authorize Endpoint For federated users

0

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.

Zeeshan
질문됨 2달 전228회 조회
1개 답변
0

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:

https://your-cognito-domain.auth.region.amazoncognito.com/oauth2/authorize?response_type=code&client_id=your_client_id&redirect_uri=your_redirect_uri&identity_provider=Google&prompt=select_account
profile picture
전문가
답변함 2달 전
  • Does not work for me. Prompt param is not passed to Google /auth endpoint

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인