badgateway / oauth2-client

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

Handle Scope #59

Closed coltoneshaw closed 2 years ago

coltoneshaw commented 2 years ago

What's the best way to attach scope to an OAuth client? I don't see it included in the types, but looking at the util.ts code it's included.

coltoneshaw commented 2 years ago

I see it doesn't allow scope for the grant type authorization_code. Is that intentional? My Oauth provider uses the below:

https://api.planningcenteronline.com/oauth/authorize?client_id=CLIENT_ID&redirect_uri=https://example.com/auth/complete&response_type=code&scope=people