Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - Make it easier for the client to use securitySchemes #81

Closed
weitzj opened this issue Oct 20, 2019 · 0 comments · Fixed by #82
Closed

Feature - Make it easier for the client to use securitySchemes #81

weitzj opened this issue Oct 20, 2019 · 0 comments · Fixed by #82

Comments

@weitzj
Copy link
Contributor

weitzj commented Oct 20, 2019

OpenAPI3 provides various means on howto to interact with an API, i.e. BasicAuth, Bearer, ApiKey, Oauth2. https://swagger.io/docs/specification/authentication/

It would be nice, if the Client can be easily configured. Currently this is possible by injection a customized HTTPClient and/or using the RequestEditorFn.

It would be nice if the runtime provided some basic guidance on how to do this.

weitzj pushed a commit to devk-insurance/oapi-codegen that referenced this issue Oct 20, 2019
This adds a new client constructor and adds some
fields to the client to extend its usage to have
multiple request-interceptors, which can be used
to help use the client for some securitySchemes.
weitzj pushed a commit to devk-insurance/oapi-codegen that referenced this issue Oct 20, 2019
This adds a new client constructor and adds some
fields to the client to extend its usage to have
multiple request-interceptors, which can be used
to help use the client for some securitySchemes.
weitzj pushed a commit to devk-insurance/oapi-codegen that referenced this issue Oct 22, 2019
This adds a new client constructor and adds some
fields to the client to extend its usage to have
multiple request-interceptors, which can be used
to help use the client for some securitySchemes.
deepmap-marcinr pushed a commit that referenced this issue Oct 22, 2019
* Fix #81 Add NewClient() constructor with Interceptors

This adds a new client constructor and adds some
fields to the client to extend its usage to have
multiple request-interceptors, which can be used
to help use the client for some securitySchemes.

* Provide SecurityProviders for some SecuritySchemes

* Regenerate templates.gen.go

* Update README.md

* Update test-fixtures
adrianpk pushed a commit to foorester/oapi-codegen that referenced this issue Jan 16, 2024
* Fix oapi-codegen#81 Add NewClient() constructor with Interceptors

This adds a new client constructor and adds some
fields to the client to extend its usage to have
multiple request-interceptors, which can be used
to help use the client for some securitySchemes.

* Provide SecurityProviders for some SecuritySchemes

* Regenerate templates.gen.go

* Update README.md

* Update test-fixtures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant