Class KeycloakContextInjector
- java.lang.Object
-
- org.keycloak.quarkus.runtime.integration.jaxrs.KeycloakContextInjector
-
- All Implemented Interfaces:
org.jboss.resteasy.spi.ContextInjector<KeycloakSession,KeycloakSession>
@Provider public class KeycloakContextInjector extends Object implements org.jboss.resteasy.spi.ContextInjector<KeycloakSession,KeycloakSession>
This
ContextInjectorallows injectingKeycloakSessionto JAX-RS resources.Due to the latest changes in Quarkus, the context map is cleared prior to dispatching to JAX-RS resources, so we need to delegate to the
ResteasyVertxProviderprovider the lookup of Keycloak contextual objects.- Author:
- Pedro Igor
- See Also:
QuarkusRequestFilter,ResteasyVertxProvider
-
-
Constructor Summary
Constructors Constructor Description KeycloakContextInjector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeycloakSessionresolve(Class rawType, Type genericType, Annotation[] annotations)
-
-
-
Method Detail
-
resolve
public KeycloakSession resolve(Class rawType, Type genericType, Annotation[] annotations)
- Specified by:
resolvein interfaceorg.jboss.resteasy.spi.ContextInjector<KeycloakSession,KeycloakSession>
-
-