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 java.lang.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 Constructor Description MultiTenantJwtIssuerValidator(TenantDetailsService tenantService) -
Method Summary
Modifier and Type Method Description org.springframework.security.oauth2.core.OAuth2TokenValidatorResultvalidate(org.springframework.security.oauth2.jwt.Jwt token)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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>
-