panva / openid-client

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

OpenApi / swagger codegen and open id client #306

Closed FaizRasool closed 4 years ago

FaizRasool commented 4 years ago

Hi i have a bit of challenge:

I need to use the open id client somehow in conjunction with openapi or swagger base generated client.

Any suggestions for best approach?

I am playing with this libraries:

"https://github.com/ferdikoomen/openapi-typescript-codegen"

It gives me a model and service to make a resource request but ideally i want somehow it helps me rather construct the object and give me back header and body that i can inject into open id client

client.requestResource(URL, tokenSet, {body, headers} )

panva commented 4 years ago

Any suggestions for best approach?

Apologies, none