Class MultiTenantResourceServerJwtConfiguration
java.lang.Object
io.quantics.multitenant.oauth2.config.MultiTenantResourceServerJwtConfiguration
@Configuration
@Conditional(io.quantics.multitenant.oauth2.config.JwtCondition.class)
public class MultiTenantResourceServerJwtConfiguration
extends Object
Configures a
JwtDecoder and exposes it as a bean.
The JwtDecoder uses a JWTProcessor with a MultiTenantJWSKeySelector and a
MultiTenantJwtIssuerValidator.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.authentication.AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>multiTenantJwtAuthoritiesConverterResolver(TenantDetailsService tenantService, org.springframework.security.oauth2.jwt.JwtDecoder multiTenantJwtDecoder, MultiTenantResourceServerProperties properties) org.springframework.security.authentication.AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>multiTenantJwtResolver(TenantDetailsService tenantService, org.springframework.security.oauth2.jwt.JwtDecoder multiTenantJwtDecoder)
-
Constructor Details
-
MultiTenantResourceServerJwtConfiguration
public MultiTenantResourceServerJwtConfiguration()
-
-
Method Details
-
multiTenantJwtResolver
@Bean @Conditional(io.quantics.multitenant.oauth2.config.NoAuthoritiesConverterCondition.class) @ConditionalOnBean(org.springframework.security.oauth2.jwt.JwtDecoder.class) public org.springframework.security.authentication.AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest> multiTenantJwtResolver(TenantDetailsService tenantService, org.springframework.security.oauth2.jwt.JwtDecoder multiTenantJwtDecoder) -
multiTenantJwtAuthoritiesConverterResolver
@Bean @Conditional(io.quantics.multitenant.oauth2.config.AuthoritiesConverterCondition.class) @ConditionalOnBean(org.springframework.security.oauth2.jwt.JwtDecoder.class) public org.springframework.security.authentication.AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest> multiTenantJwtAuthoritiesConverterResolver(TenantDetailsService tenantService, org.springframework.security.oauth2.jwt.JwtDecoder multiTenantJwtDecoder, MultiTenantResourceServerProperties properties)
-