laravel / passport

Laravel Passport provides OAuth2 server support to Laravel.
https://laravel.com/docs/passport
MIT License
3.29k stars 780 forks source link

failed Tokens request returns 200 https status instead of 400 #1618

Closed chaotic98 closed 1 year ago

chaotic98 commented 1 year ago

Description:

when requesting to convert authorization code to access tokens, if the validation fails instead of showing 400 http status, it shows 200.

Steps To Reproduce:

request token like this https://laravel.com/docs/9.x/passport#requesting-tokens and then convert authorization code to Access Tokens like the link below: https://laravel.com/docs/9.x/passport#requesting-tokens-converting-authorization-codes-to-access-tokens if validation fails to any reason the http status will be 200 instead of 400 Screenshot 2023-01-18 172310

hafezdivandari commented 1 year ago

I couldn't reproduce the issue:

image
driesvints commented 1 year ago

Hey there,

Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.

Thanks!