How to stop Google SSO from redirect to AWS hosted ui screen when session timeout

0

My Cognito user pool has the following configuration:

  • Login with Google
  • Authentication flow session duration: 3 minutes

Then, I have a login page ( my web application Url). The federated login with Google works fine except in the following case:

  • I wait at the select Google Account screen for 3 minutes (waiting for the authentication flow session to expire)
  • Then, select the Google Account to login.
  • Expected result: the login failed, and the browser should redirect to ( ( my web application Url).).
  • Observed result: the login failed, and the browser redirected to hosted UI with an error message Something went wrong. Please try again. In the URL, I can see the param redirect_uri is (my web application Url).) In this case, how can I make Cognito redirects to (my web application Url) instead of the hosted UI?

Thank you.

질문됨 일 년 전68회 조회
답변 없음

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

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

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

관련 콘텐츠