thephpleague / oauth2-server

A spec compliant, secure by default PHP OAuth 2.0 Server
https://oauth2.thephpleague.com
MIT License
6.49k stars 1.12k forks source link

include caught exception when throwing OAuthServerException #1335

Closed dungsaga closed 1 year ago

dungsaga commented 1 year ago

When throwing OAuthServerException, the caught exception should be included as a parameter (named $previous). The would help with debug and allow showing customized message for each kind of validation error

Sephster commented 1 year ago

Closing in favour of #1243