quarkiverse / quarkus-openapi-generator

OpenAPI Generator - REST Client Generator
Apache License 2.0
125 stars 89 forks source link

API key header with Authorization header #437

Open ninckblokje opened 1 year ago

ninckblokje commented 1 year ago

Hi,

Since #355 the API key header will get the value of the authorization header (if it is set in the request context; the class ApiKeyAuthenticationProvider handles this). However this causes problems when an API requires both an authorization header (with a JWT bearer token) and a static API key (in a different header).

Is there a way to disable this functionality? Or is it possible to make this behaviour configurable (or can I submit a PR to make this possible)?

Jeroen

hbelmiro commented 1 year ago

There's no way to configure this @ninckblokje. Feel free to send a PR.

ninckblokje commented 1 year ago

Great!

Should the current behaviour be the default if I create configuration option for this?

hbelmiro commented 1 year ago

Should the current behaviour be the default if I create configuration option for this?

Yes.

github-actions[bot] commented 1 year ago

@ricardozanini @hbelmiro This is being labeled as Stale.