-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Get the unexpected response code 400 when refresh token is expired (in oauth2/token endpoint) #2260
Comments
Thank you for contributing to this repository by creating an issue! Unfortunately, your issue lacks vital information, such as log files, the error message, the software version, your configuration or other pieces of the puzzle. Please also ensure that your issue is appropriately formatted. If you do not know how to write markdown, you can find help here. Helping you with your problem is only possible if you share this information, and it will save a lot of time of back and forth on your as well as our end! For this reason, this repository uses issue templates which you can select when pressing "New issue". Please use one of those issue templates to fill in the required information. You can either create a new issue for this purpose and close this one, or leave a comment.
If you do not provide the requested information, this issue will be closed. |
Describe the bug The unexpected response code 400 when refresh token is expired (in oauth2/token endpoint) Reproducing the bug Steps to reproduce the behavior:
Server logs
Server configuration ttl:
refresh_token: 1m Expected behavior 401 Response. But we got the 400 Bad request Environment
|
Hi,
We found that an unexpected response code when refresh token is expired.
Based on this api document, there are 200, 401, 500 response code for this endpoint POST /oauth2/token
https://www.ory.sh/hydra/docs/reference/api/#the-oauth-20-token-endpoint
However, we got the 400 Bad Request because the fosite transform it.
https://github.com/ory/fosite/blob/master/handler/oauth2/flow_refresh.go#L73
Is it the expected result? Or maybe we misunderstand something, thanks.
The text was updated successfully, but these errors were encountered: