You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new HandlesOAuthErrors middleware is unable to actually handle errors, because Laravel intercepts Exceptions of the final destination of the middleware pipeline:
see also my comment in the PR introducing the middleware: #937 (comment)
Steps To Reproduce:
Attempt to use Passport within a Laravel application and open /oauth/authorize with an invalid client_id. You'll see an HTTP 500 instead of a proper JSON response explaining the issue.
The text was updated successfully, but these errors were encountered:
Description:
The new
HandlesOAuthErrors
middleware is unable to actually handle errors, because Laravel interceptsException
s of the final destination of the middleware pipeline:https://github.com/laravel/framework/blob/9097786caae30e9ca243874e5c807609f1f2728e/src/Illuminate/Pipeline/Pipeline.php#L133
see also my comment in the PR introducing the middleware: #937 (comment)
Steps To Reproduce:
Attempt to use Passport within a Laravel application and open
/oauth/authorize
with an invalidclient_id
. You'll see an HTTP 500 instead of a proper JSON response explaining the issue.The text was updated successfully, but these errors were encountered: