quarkiverse / quarkus-openapi-generator

OpenAPI Generator - REST Client Generator
Apache License 2.0
108 stars 68 forks source link

Do not add blank Bearer token #588

Closed martinoneutrino closed 6 months ago

martinoneutrino commented 6 months ago

Request for BearerAuthenticationProvider not to add a blank token to the Authorization header, as doing so will never satisfy any real authorization requirement, and may cause a request failure when multiple Authorization headers are sent due to multiple (optional) security schemes are defined on an endpoint.

This change could be extended to the other AuthProviders, but I have not been using those.

Fixes: #589

hbelmiro commented 6 months ago

@all-contributors add @martinoneutrino to code.

allcontributors[bot] commented 6 months ago

@hbelmiro

I've put up a pull request to add @martinoneutrino! :tada: