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

How to handle New Password challenge? #34

Open
pbaker5 opened this issue Feb 25, 2019 · 7 comments
Open

How to handle New Password challenge? #34

pbaker5 opened this issue Feb 25, 2019 · 7 comments

Comments

@pbaker5
Copy link

pbaker5 commented Feb 25, 2019

Hi,

The Use Case 4 says that when Authenticating and a CognitoUserNewPasswordRequiredException is thrown, handle the new password challenge. Looking through cognito_user.dart I can't see a way of doing that. Am I missing something?

Thanks.

@demsey2
Copy link

demsey2 commented Mar 8, 2019

@pbaker5 did you find any solution for that, I have the same issue

@pbaker5
Copy link
Author

pbaker5 commented Mar 12, 2019

@pbaker5 did you find any solution for that, I have the same issue

Nope.

@ncb000gt
Copy link
Contributor

I have a pr up for this flow. You can pull down my changes and try them out: #22

Note that I'm not sure @jonsaw has had a chance to review the changes yet. But, they worked for me in my very localized testing. Let me know if you run into any issues. :)

@demsey2
Copy link

demsey2 commented Mar 13, 2019

thanks for the info, I tried to reference your fork in my pubspec.yaml with the following:

amazon_cognito_identity_dart:
    git:
      url: https://github.com/ncb000gt/amazon-cognito-identity-dart.git
      ref: master

but this still gets the original package, do you know how to fix that or what is there a better way to handle that?

@ncb000gt
Copy link
Contributor

@demsey2 Try the branch new_password_required_challenge.

@tigrenok00
Copy link

Hi! Any news on this? We need it as well... Thanks!

@ncb000gt
Copy link
Contributor

@tigrenok00 Hopefully you're able to use the branch I noted above - I can't promise commit parity with this project as I update it as needed, but it will get you the feature you're looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants