Oidc-client: Custom dynamic headers #22256
-
We want to interface with an API using OpenID connect and on top of that the upcoming HTTP Message Signing standard. This requires us to modify the headers of the token requests based on the body contents before those token requests are sent out via Vert.x. As of now, we did not find a solution short of reimplementing OidcClient (to at least keep the token cashing infrastructure). Is there a better way (maybe vert.x equivalent of MessageWriterInterceptor)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 21 replies
-
@rkraneis Can you please clarify, do you refer to So you can inject |
Beta Was this translation helpful? Give feedback.
@rkraneis Can you please clarify, do you refer to
quarkus-oidc-client
?In this case you can use the dynamic client creation feature, see: https://quarkus.io/guides/security-openid-connect-client#use-oidcclients.
So you can inject
OidcClients
, createOidcClientConfig
dynamically (it allows to set the custom header) and create the client.Does it help ?