Class IssuerClaimValidator
java.lang.Object
io.micronaut.security.oauth2.endpoint.token.response.validation.IssuerClaimValidator
- All Implemented Interfaces:
OpenIdClaimsValidator
@Requires(property="micronaut.security.oauth2.openid.claims-validation.issuer",
notEquals="false")
@Singleton
public class IssuerClaimValidator
extends Object
implements OpenIdClaimsValidator
The Issuer Identifier for the OpenID Provider (which is typically obtained during Discovery) MUST exactly match the value of the iss (issuer) Claim.
- Since:
- 1.2.0
- Author:
- Sergio del Amo
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
validate
(OpenIdClaims claims, OauthClientConfiguration clientConfiguration, OpenIdProviderMetadata providerMetadata)
-
Constructor Details
-
IssuerClaimValidator
public IssuerClaimValidator()
-
-
Method Details
-
validate
public boolean validate(OpenIdClaims claims, OauthClientConfiguration clientConfiguration, OpenIdProviderMetadata providerMetadata) - Specified by:
validate
in interfaceOpenIdClaimsValidator
- Parameters:
claims
- ID Token ClaimsclientConfiguration
- OAuth 2.0 Client ConfigurationproviderMetadata
- OpenID Connect provider metadata- Returns:
- Whether the JWT Claims pass validation or not.
-