OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.75k stars 6.56k forks source link

[REQ] Add Basic Bearer authentication to Go clients #5018

Open alecxvs opened 4 years ago

alecxvs commented 4 years ago

Is your feature request related to a problem? Please describe.

Other languages (Java, Ruby) have basic bearer support, so I've updated my api definition to use that. Previously I was using OAuth 2 and renaming references to access token as bearer token. I suspect this will cause issues now with the Go client however.

Describe the solution you'd like

Add basic bearer auth scheme for Golang

Describe alternatives you've considered

Modifying templates to accommodate a bearer token. Not fun, and somewhat fragile.

jasondamour commented 1 year ago

https://github.com/OpenAPITools/openapi-generator/pull/14957

jasondamour commented 1 year ago

This is supported now