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 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:
      resolve in interface org.springframework.security.authentication.AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>