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
549 Views
0
Answers
2 years ago
2 years 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?