Class MultiTenantResourceServerWebMvcConfiguration

java.lang.Object
io.quantics.multitenant.oauth2.config.MultiTenantResourceServerWebMvcConfiguration

@Configuration
@ConditionalOnMissingBean(org.springframework.web.servlet.config.annotation.WebMvcConfigurer.class)
public class MultiTenantResourceServerWebMvcConfiguration
extends java.lang.Object
Configures a WebMvcConfigurer with a HandlerInterceptorAdapter. 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 Summary

    Constructors
    Constructor Description
    MultiTenantResourceServerWebMvcConfiguration()  
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MultiTenantResourceServerWebMvcConfiguration

      public MultiTenantResourceServerWebMvcConfiguration()