Package io.quantics.multitenant.oauth2.config
package io.quantics.multitenant.oauth2.config
Contains configuration classes for OAuth2-based multi-tenant applications.
-
ClassDescriptionConverter for converting a Keycloak-issued
JwtintoGrantedAuthorities.A tenant-aware implementation of an AuthenticationManagerResolver that holds a repository of all authentication managers.An implementation of aJWTClaimsSetAwareJWSKeySelectorthat selects key candidates based on the issuer of the provided JWT.AJwtAuthenticationConverterthat can be configured via passing a class name.An implementation of aOAuth2TokenValidatorthat validates the issuer of aJwtagainst a whitelist of allowed tenants.Auto-configurationfor multi-tenant resource server support.Configures aJwtDecoderand exposes it as a bean.Multi-tenant resource server properties.Configures aWebMvcConfigurerwith aHandlerInterceptor.Configures aSecurityFilterChainwhen jwt is used as the mode for resolving the tenant.