-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Improve transparency of reset password flow #7434
Comments
Thanks for opening this issue. As described in your references discussion, this change makes sense to give the developer more control over the password reset flow. The security implication is marginal because it allows to determine whether a specific email address is assigned to a user, but that is also possible via the sign-up endpoint. However, since obfuscation is also a security strategy, there is a security implication which has to be considered and mentioned in the changelog as a significant change. In addition, it is a breaking change if instead of success an error response is returned in some cases. According to our deprecation policy this change should be phased in. |
Ok. Sounds good. How should we go about depreciating it? Add a warning and then remove it at a later date? Also, do you think we could have a Parse Server option called |
We would add a new parse server option where the developer can choose whether the endpoint should return an error or success if the email doesn't exist. The default would be to return success (as it currently does), with a deprecation log if the option is not manually set return an error. Instead of deprecating we could also make it a permanent option, without deprecation. So we keep the obfuscating default setting to return success. If a developer wants to build a custom flow, they can choose to set it to return an error. The benefit would be that it's no breaking change, no deprecation needed, while keeping the more secure obfuscation behavior as default. |
Right, so rather than deprecating the current flow, we could add a |
Yes, what do you think? |
Sounds like an elegant solution. Thanks for the discussion! I'll work on it. |
Thanks for opening this issue!
|
I've removed this from Parse Server 6 release list as it's not a breaking change anymore, see #7551 (review). |
🎉 This change has been released in version 6.0.0-alpha.34 |
🎉 This change has been released in version 6.1.0-beta.1 |
🎉 This change has been released in version 6.1.0-alpha.1 |
🎉 This change has been released in version 6.1.0 |
New Issue Checklist
Issue Description
As discussed here, password reset should throw with an invalid email, rather than returning success.
Steps to reproduce
Request a password reset with an invalid email.
Actual Outcome
Response is success.
Expected Outcome
Response should be "invalid email" or something useful.
Failing Test Case / Pull Request
Environment
Server
master
(4.5.0)The text was updated successfully, but these errors were encountered: