-
Notifications
You must be signed in to change notification settings - Fork 112
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
feat(auth): add options to resetPassword and confirmResetPassword #1426
feat(auth): add options to resetPassword and confirmResetPassword #1426
Conversation
Can you please elaborate on what type of testings you have done? We are looking for something more involved than just unit testing. Have you integrated this in sample apps to see if it works? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more testing required.
Hi @frimfram - For context, I am adding this for use in amplify-flutter. I have tested an end to end reset password flow from a flutter app with the changes in aws-amplify/amplify-flutter#743 and confirmed that I can see the metadata in a lambda trigger. If there is something specific you are looking for from a testing perspective, please let me know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚢
@frimfram - Here are the scenarios that I tested for resetPassword and confirmResetPassword. Each of these scenarios were from a native Android app. For both APIs I first tested v1.21.0 of amplify-android to confirm existing behavior, and then tested with the changes in this PR (with and without options/metadata). Reset Password Scenarios
Confirm Reset Password Scenarios
|
@@ -653,10 +657,17 @@ public void onError(Exception exception) { | |||
@Override | |||
public void resetPassword( | |||
@NonNull String username, | |||
@NonNull AuthResetPasswordOptions options, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great if overriding is used instead of this breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resetPassword()
on line 698 has the same method signature as the existing method. This will not be breaking.
…at/auth/password-options
Issue #, if available: N/A
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.