IdentityModel / oidc-client-js

OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications
Apache License 2.0
2.43k stars 842 forks source link

Add scope to getTokenEndpoint #1333

Closed Krysztal closed 3 years ago

Krysztal commented 3 years ago

I have error during getTokenEndpoint. Battle.net APIs require to set scopes to the token request. As I see TokenClient does not do it. Can I add it somehow? If not then please add scopes to a token request.

https://github.com/IdentityModel/oidc-client-js/blob/a8a70ce68bd07373abd7d33e016a97adc5d204bc/src/TokenClient.js#L21

brockallen commented 3 years ago

You can set additional token request params. Try that?

Krysztal commented 3 years ago

I was to sleepy tonight, I can do it, Thx!