Replies: 2 comments 7 replies
-
/cc @pedroigor (keycloak), @sberyozkin (keycloak) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @mickroll Sorry for a delay, as far as I recall it was tried originally but it was causing side-effects for Keycloak Admin API calls, example, Jackson provider would be picked up. etc. Also CC @michalvavrik |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are in the process of switching from an OpenAPI based Keycloak access to using
keycloak-admin-client-reactive
.With our previous approach we could add custom
ClientRequestFilter
(andClientResponseFilter
) by registering them either on a specific Api interface using@org.eclipse.microprofile.rest.client.annotation.RegisterProvider(ExampleClientRequestFilter.class)
or globally by annotating the filter class with@javax.ws.rs.ext.Provider
.But the rest client that is internally used by
keycloak-admin-client-reactive
does neither pick up any global filter that is annotated by@Provider
nor respect a@RegisterProvider
annotation on an extension interface that we stuff intoorg.keycloak.admin.client.Keycloak.proxy(Class<KeycloakAdminExtensionApi>, URI)
.I think that is because
io.quarkus.keycloak.admin.client.reactive.runtime.ResteasyReactiveClientProvider
has its own logic to build ajakarta.ws.rs.client.Client
, instead of using something likeio.quarkus.rest.client.reactive.runtime.RestClientBuilderImpl
. The latter has extensive logic in itsbuild
method for extending the client while building it.I am a bit puzzled now. Why does
..keycloak..ResteasyReactiveClientProvider
implement its own logic for creating a rest client instead of reusing the existing logic ofio.quarkus.rest.client.reactive
?Especially having a way to add a
ClientRequestFilter
/ClientResponseFilter
to the used rest client would be very useful to our use case.Beta Was this translation helpful? Give feedback.
All reactions