chore: change error type to 400 if id token processing fails#4389
chore: change error type to 400 if id token processing fails#4389jonas-jonas wants to merge 1 commit intomasterfrom
Conversation
|
tests failing :( |
|
Hmmm, returning 400 instead of 500 causes the error handler to add the error to the flow UI, which changes the whole flow of the flow. Technically, this could be considered breaking as well, though I'd argue that the 400 case must be handled by clients anyway, so the impact is low. However, it does make the tests awkward because of #4381 (there is no way to get the flow ID that was used and to fetch the flow to assert the error message is correct). Sidenote: I also think, not all the possible errors are 400, but rather an expected 500 (e.g. mis config/mis use of the API). All in all, a bit more work to get the tests over the line, I think. |
|
Tests are failing otherwise LGTM |
|
I think there is another PR to add misconfiguration errors in Ory Hydra by Patrik, we can probably just use that status code here as well. |
|
This one: #3248 |
Related issue(s)
Checklist
introduces a new feature.
contributing code guidelines.
vulnerability. If this pull request addresses a security vulnerability, I
confirm that I got the approval (please contact
security@ory.sh) from the maintainers to push
the changes.
works.
Further Comments