UserLambdaValidationException : Trying to integrate Passwordless Authentication using AWS Cognito and Amplify library in Android App

0

I'm getting "userLambdaValidationException" error while calling the sign in method. Error: com.amazonaws.services.cognitoidentityprovider.model.UserLambdaValidationException: DefineAuthChallenge failed with error User does not exist.

1回答
0

Based on the error it sounds like there is not a User within Cognito to be referenced or verified rather via the customer challenge. The user needs to register prior to passing a challenge in order to be authenticated. The following exert and additional information can be found in this AWS Blog: https://aws.amazon.com/blogs/security/how-to-implement-password-less-authentication-with-amazon-cognito-and-webauthn/

"Amazon Cognito user pools allow you to build a custom authentication flow that uses AWS Lambda functions to authenticates users based on one or more challenge/response cycles. You can use this flow to implement password-less authentication that is based on custom challenges. To use this flow to implement FIDO authentication, you need to create credentials during the registration phase and reference these credentials in the user’s profile. You can then validate these credentials during the authentication phase in a custom challenge."

AWS
JMWare
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン