-
-
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
verifyPassword endpoint should accept POST #7784
Comments
Thanks for opening this issue!
|
I also think it should be POST because:
|
Mixed up the endpoints in my previous comment, This almost contradictory spec of RFC2616 / HTTP/1.1 which implies that an idempotent request has to expose parameters as part of the URL due to lack of a request body is slowly softening up. RFC 7230-7237 (2014) does not explicitly demand that the request body of a GET request should be ignored. This opens up the possibility to add a body to a GET request. However, we may run into compatibility issues on systems where the request is parsed in a "conservative" way and any body of a GET request being discarded. So for the time being, switching to POST seems to be the way to go. |
New Feature / Enhancement Checklist
Current Limitation
verifyPassword
currently only accepts get. Most of the endpoints have been moved to accept POST, but not this one. When using GET with verifyPassword, it sends theusername
andpassword
being verified allowing this data to be cached.parse-server/src/Routers/UsersRouter.js
Lines 493 to 495 in 350b59a
Feature / Enhancement Description
Use POST instead and SDK's should change to POST. I currently only found this being used in the JS SDK, though I have an implementation of it for the Swift SDK that I haven't merged yet. I don't plan on merging the Swift version with GET. Of course, it can also be accessed via REST.
Maybe get rid of GET here? Maybe it's needed for backwards compatibility? Just a thought...
Example Use Case
verifyPassword
endpoint with a POST (instead of GET)Alternatives / Workarounds
Use
GET
or don't useverifyPassword
/3rd Party References
Previous Issue #4052, PR: #4268
The text was updated successfully, but these errors were encountered: