@Provider public class KeycloakContextInjector extends Object implements org.jboss.resteasy.spi.ContextInjector<KeycloakSession,KeycloakSession>
This ContextInjector allows injecting KeycloakSession to 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 ResteasyVertxProvider provider the lookup of Keycloak contextual objects.
QuarkusRequestFilter,
ResteasyVertxProvider| Constructor and Description |
|---|
KeycloakContextInjector() |
| Modifier and Type | Method and Description |
|---|---|
KeycloakSession |
resolve(Class rawType,
Type genericType,
Annotation[] annotations) |
public KeycloakSession resolve(Class rawType, Type genericType, Annotation[] annotations)
resolve in interface org.jboss.resteasy.spi.ContextInjector<KeycloakSession,KeycloakSession>Copyright © 2021 JBoss by Red Hat. All rights reserved.