Class MultiTenantJwtIssuerValidator

  • All Implemented Interfaces:
    org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>

    public class MultiTenantJwtIssuerValidator
    extends Object
    implements org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>
    An implementation of a OAuth2TokenValidator that validates the issuer of a Jwt against a whitelist of allowed tenants. The allowed tenants are provided by a TenantDetailsService.
    See Also:
    OAuth2TokenValidator
    • Constructor Detail

      • MultiTenantJwtIssuerValidator

        public MultiTenantJwtIssuerValidator​(TenantDetailsService tenantService)
    • Method Detail

      • validate

        public org.springframework.security.oauth2.core.OAuth2TokenValidatorResult validate​(org.springframework.security.oauth2.jwt.Jwt token)
        Specified by:
        validate in interface org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>