Class KeycloakSpringBootConfigResolverWrapper

java.lang.Object
org.keycloak.adapters.springsecurity.config.KeycloakSpringConfigResolverWrapper
org.keycloak.adapters.springboot.KeycloakSpringBootConfigResolverWrapper
All Implemented Interfaces:
org.keycloak.adapters.KeycloakConfigResolver

public class KeycloakSpringBootConfigResolverWrapper extends KeycloakSpringConfigResolverWrapper

A specific implementation of KeycloakSpringConfigResolverWrapper that first tries to register any KeycloakConfigResolver instance provided by the application. if none is provided, KeycloakSpringBootConfigResolver is set.

This implementation is specially useful when using Spring Boot and Spring Security in the same application where the same KeycloakConfigResolver instance must be used across the different stacks.

Author:
Pedro Igor
  • Constructor Details

    • KeycloakSpringBootConfigResolverWrapper

      public KeycloakSpringBootConfigResolverWrapper()
  • Method Details

    • setApplicationContext

      public static void setApplicationContext(org.springframework.context.ApplicationContext context)
    • setAdapterConfig

      public static void setAdapterConfig(KeycloakSpringBootProperties adapterConfig)