panva / openid-client

OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
MIT License
1.83k stars 392 forks source link

support OAuth 2.0 Pushed Authorization Requests #259

Closed foray1010 closed 4 years ago

foray1010 commented 4 years ago

Is your feature request related to a problem? Please describe. Since oidc-provider already support OAuth 2.0 Pushed Authorization Requests - draft 01, I would like openid-client to support it too so that my project could use it, I am willing to open PR for it.

Describe the solution you'd like not sure what is the best interface design, maybe we create another function called pushedAuthorizationUrl?

Describe alternatives you've considered N/A

Additional context

panva commented 4 years ago

Hi @foray1010,

thank you for offering to work on this interface. Given that PAR is still an early draft i am hesitant to adding it to the client library. Rest assured that once stable, as one of the draft's authors i will be adding first party support.

It shouldn't be an issue for you to make those requests using got or similar request library.

You may even use the existing API and construct a dirty client instance method to re-use some of the client internals.

panva commented 3 years ago

v4.6.0 now supports draft-ietf-oauth-par-06. See documentation