Class MultiTenantJwtIssuerValidator
java.lang.Object
io.quantics.multitenant.oauth2.config.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.core.OAuth2TokenValidatorResultvalidate(org.springframework.security.oauth2.jwt.Jwt token)
-
Constructor Details
-
MultiTenantJwtIssuerValidator
-
-
Method Details
-
validate
public org.springframework.security.oauth2.core.OAuth2TokenValidatorResult validate(org.springframework.security.oauth2.jwt.Jwt token) - Specified by:
validatein interfaceorg.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>
-