-
-
Notifications
You must be signed in to change notification settings - Fork 964
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
Admin recovery link returns 404 for an invalid request body #1664
Comments
Nice find, PRs welcomed :) The 404 happens because the identity is not found (because it is empty) |
If I can find time I'll push a PR for this 🤞 |
aeneasr
added a commit
that referenced
this issue
Feb 24, 2022
aeneasr
added a commit
that referenced
this issue
Feb 25, 2022
aeneasr
added a commit
that referenced
this issue
Feb 26, 2022
peturgeorgievv
pushed a commit
to senteca/kratos-fork
that referenced
this issue
Jun 30, 2023
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The admin
/recovery/link
endpoint returns a 404 not found if the JSON body contains invalid properties. It should return a 400 bad request in this case.I encountered this when accidentally giving the
identity_id
property as justidentity
Reproducing the bug
Steps to reproduce the behavior:
curl --request POST
--url http://localhost:4434/recovery/link
--header 'Content-Type: application/json'
--data '{
"expires_in": "12h",
"identity": "abcd-1234"
}'
Server logs
Server configuration
Expected behavior
I would expect a 400 bad request possibly with any missing or invalid fields
Environment
The text was updated successfully, but these errors were encountered: