quarkiverse / quarkus-openapi-generator

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

[quarkus2] Do not add blank Bearer token #591

Closed github-actions[bot] closed 6 months ago

github-actions[bot] commented 6 months ago

Backport: https://github.com/quarkiverse/quarkus-openapi-generator/pull/588

Note: CI is not automatically triggered on backported PRs, please comment 'ok to test' to launch Jenkins jobs

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