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

Call oauth token endpoint with http GET instead of POST #1376

Closed TwinbrotherPro closed 3 years ago

TwinbrotherPro commented 3 years ago

Right now I am integrating this library into my client code.

Sadly my IDProvider only supports the GET method for the token endpoint.

Is there a way to configure oidc-client-js to do the token request with an HTTP GET?

brockallen commented 3 years ago

Sadly your token server is not spec compliant, and this library will [try to] remain spec compliant:

"The client MUST use the HTTP "POST" method when making access token requests."

https://datatracker.ietf.org/doc/html/rfc6749#section-3.2