thephpleague / oauth2-client

Easy integration with OAuth 2.0 service providers.
http://oauth2-client.thephpleague.com
MIT License
3.64k stars 751 forks source link

Add an options argument to the getResponse provider method #967

Open matthieuleorat opened 2 years ago

matthieuleorat commented 2 years ago

To solve the issue https://github.com/thephpleague/oauth2-client/issues/863 I propose the following PR

I wanted to write some tests but feel a bit struggled because i don't know Mockery.

AmirHo3ein13 commented 1 year ago

@matthieuleorat I think you also need to add the $option to getParsedResponse() and pass it to getResponse(). For example if you want to pass a json body to the server.