Class MultiTenantAuthenticationManagerResolver
java.lang.Object
io.quantics.multitenant.oauth2.config.MultiTenantAuthenticationManagerResolver
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>
public class MultiTenantAuthenticationManagerResolver
extends Object
implements org.springframework.security.authentication.AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>
A tenant-aware implementation of an AuthenticationManagerResolver that holds a repository of all
authentication managers. Each manager is responsible for resolving the authentication of a
specific tenant.
- See Also:
-
AuthenticationManagerResolver
-
Constructor Summary
ConstructorsConstructorDescriptionMultiTenantAuthenticationManagerResolver(TenantDetailsService tenantService, org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder) MultiTenantAuthenticationManagerResolver(TenantDetailsService tenantService, org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder, org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationConverter authenticationConverter) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.authentication.AuthenticationManagerresolve(javax.servlet.http.HttpServletRequest request)
-
Constructor Details
-
MultiTenantAuthenticationManagerResolver
public MultiTenantAuthenticationManagerResolver(TenantDetailsService tenantService, org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder) -
MultiTenantAuthenticationManagerResolver
public MultiTenantAuthenticationManagerResolver(TenantDetailsService tenantService, org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder, org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationConverter authenticationConverter)
-
-
Method Details
-
resolve
public org.springframework.security.authentication.AuthenticationManager resolve(javax.servlet.http.HttpServletRequest request) - Specified by:
resolvein interfaceorg.springframework.security.authentication.AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>
-