Unanswered
Hi, we are implementing multiple rest clients with different auth server using multi-tenancy and ClientRequestFilter for getting tokens.
Create a filter implementing ClientRequestFilter as can be found here:
https://quarkus.io/guides/security-openid-connect-client-reference#named-oidc-clients
Configure multiple tenants in application.json/application.yaml.
And finally annotate your RestClient Interfaces to use this filter:
Example:
@RegisterRestClient(configKey = "keycloak")
@RegisterProvider(KeycloakOidcClientRequestFilter.class)
@Path("/clients")
public interface KeycloakClientsResource ...
cheers luke
363 Views
0
Answers
one year ago
one year ago
Thank you very much! I will try and get back :-)
This worked with client credentials flow. We have a new situation now, where I need to access the data with implicit flow. That implies that I need to login with a service account user. Do you have any tips for that?