Cognito Hosted UI user email verification (using valid verification code) failed (according to UI) but user is confirmed.

0

Trying to test a new user signup flow using Cognito's Hosted UI. When I sign up with a new username / email address, I get the verification code in email, copy it, and paste it into the Cognito Hosted UI's confirmation page. Cognito then tells me that the user couldn't be confirmed and that the code was invalid. A second attempt to confirm the user, however, fails with a message that the user is already confirmed (which I can verify is true in the aws console). If I start over at the login UI, the user can login. Not sure what I could be doing wrong here. Appears to be a bug.

Additional Info: It seems to have something to do with data passed in the state parameter. If I pass url encoded json for the state I will sometimes get this incorrect behavior and sometimes not (depending on the specifics of the json... haven't been able to narrow down the exact trigger). If I simply base64 encode the json instead (intentionally not url encoding, so "=" stays "=" and not "%3D", everything seems to work. No idea why the contents of the state param should have any effect on the outcome of verification (state param is supposed to be opaque). Still seems like a bug to me. But the base64 workaround is good enough for now.

질문됨 2년 전131회 조회
답변 없음

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

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

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