badgateway / oauth2-client

OAuth2 client for Node and browsers
https://www.npmjs.com/package/@badgateway/oauth2-client
MIT License
273 stars 32 forks source link

Support for 'client_secret_post' #85

Closed parkerduckworth closed 1 year ago

parkerduckworth commented 1 year ago

Hello! First of all, thanks for your hard word on this project :)

While working with this library to replace an existing OIDC auth client, I noticed that there is currently only support for client_secret_basic authentication method. This is a blocker for my team, because we are only allowed to enable client_secret_post.

I went ahead and opened PR #84 which contains the changes need to support client_secret_post for both the client_credentials and password grant types.