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 Object
Configures aWebMvcConfigurerwith aHandlerInterceptor. The interceptor is used for setting the current tenant in theTenantContextautomatically 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.