Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication failed due to an internal error for challenge "PASSWORD_VERIFIER" #872

Closed
vishnumulik opened this issue Apr 5, 2019 · 2 comments
Assignees
Labels
cognito Issues with the AWS Android SDK for Cognito pending-community-response Issue is pending response from the issue requestor

Comments

@vishnumulik
Copy link

Describe the bug
I am implementing aws cognito user pool using custom auth for multi factor authentication.
I have set the authentication type as CUSTOM_AUTH and custom challenge as SRP_A. which in response gives another challenge as PASSWORD_VERIFIER and the procedure fails.

To Reproduce
Steps to reproduce the behavior:
Code for authentication using CUSTOM_AUTH

Map<String, String> authParameters = new HashMap<>();
        authParameters.put(CognitoServiceConstants.AUTH_PARAM_USERNAME, this.username);
        authParameters.put(CognitoServiceConstants.AUTH_PARAM_PASSWORD, password);
        authParameters.put(CognitoServiceConstants.AUTH_PARAM_SRP_A, new AuthenticationHelper(this.username).getA().toString(16));

        AuthenticationDetails authenticationDetails = new AuthenticationDetails(this.username, authParameters, null);
        authenticationDetails.setAuthenticationType(CognitoServiceConstants.AUTH_TYPE_INIT_CUSTOM_AUTH);
        authenticationDetails.setCustomChallenge(CognitoServiceConstants.AUTH_PARAM_SRP_A);
        continuation.setAuthenticationDetails(authenticationDetails);

        continuation.continueTask();

which gives callback in

  AuthenticationHandler authenticationHandler = new AuthenticationHandler() {
       @Override
        public void onFailure(Exception e) {
         .... //exception message ->  Failed to find password in authentication details to response to PASSWORD_VERIFIER challenge
        }
}

Which AWS service(s) are affected?
Cognito User Pool Authentication MFA

Environment(please complete the following information):

  • SDK Version: [e.g. 2.12.0]
@minbi minbi self-assigned this Apr 5, 2019
@minbi minbi added the cognito Issues with the AWS Android SDK for Cognito label Apr 5, 2019
@minbi
Copy link
Contributor

minbi commented Apr 5, 2019

@vishnumulik ,

This issue has already been fixed. Please use SDK version 2.12.5 or above.

@minbi minbi added closing soon Issue will auto-close if there is no additional activity within 7 days. pending-community-response Issue is pending response from the issue requestor labels Apr 5, 2019
@stale stale bot removed the closing soon Issue will auto-close if there is no additional activity within 7 days. label Apr 5, 2019
@minbi minbi added the closing soon Issue will auto-close if there is no additional activity within 7 days. label Apr 8, 2019
@vishnumulik
Copy link
Author

Verified in 2.13. and its working . Thanks

@stale stale bot removed the closing soon Issue will auto-close if there is no additional activity within 7 days. label Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cognito Issues with the AWS Android SDK for Cognito pending-community-response Issue is pending response from the issue requestor
Projects
None yet
Development

No branches or pull requests

2 participants