Class MultiTenantResourceServerWebMvcConfiguration


  • @Configuration
    @ConditionalOnMissingBean(org.springframework.web.servlet.config.annotation.WebMvcConfigurer.class)
    public class MultiTenantResourceServerWebMvcConfiguration
    extends Object
    Configures a WebMvcConfigurer with a HandlerInterceptor. The interceptor is used for setting the current tenant in the TenantContext automatically for each request.
    • If header is used as the mode for resolving the tenant, the current tenant is resolved from the configured header name.
    • If jwt is used as the mode for resolving the tenant, the current tenant is resolved from the token's iss claim.
    • Constructor Detail

      • MultiTenantResourceServerWebMvcConfiguration

        public MultiTenantResourceServerWebMvcConfiguration()