You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone
I would like to propagate the authorization haeder in Quarkus app with MocroProfile Rest Client.
In the application.properties I've defined the Config property: mp.rest.client.propagateHeaders=Authorization
Is it enough to annotate the client interface with the @RegisterClientHeaders annotation without specifying any factory like below?
`@Path("/extensions")
@RegisterRestClient(configKey="extensions-api")
@RegisterClientHeaders
public interface ExtensionService {
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone
I would like to propagate the authorization haeder in Quarkus app with MocroProfile Rest Client.
In the application.properties I've defined the Config property:
mp.rest.client.propagateHeaders=Authorization
Is it enough to annotate the client interface with the @RegisterClientHeaders annotation without specifying any factory like below?
`@Path("/extensions")
@RegisterRestClient(configKey="extensions-api")
@RegisterClientHeaders
public interface ExtensionService {
}`
Should I define a @ClientHeaderParam annotation?
Beta Was this translation helpful? Give feedback.
All reactions