Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolValidator
OpenIdConnectProtocolValidator is used to ensure that an OpenIdConnectMessage
obtained using OpenID Connect is compliant with .
Default for the how long the nonce is valid.
Gets or sets a value for default RequreSub.
Gets or sets the CryptoProviderFactory that will be used for crypto operations.
Gets the algorithm mapping between OpenIdConnect and .Net for Hash algorithms.
a IDictionary<T, U> that contains mappings from the JWT namespace to .NET.
Gets or sets the delegate for validating 'id_token'.
Gets or set the TimeSpan defining how long a nonce is valid.
Gets or sets a value indicating if an 'acr' claim is required.
Gets or sets a value indicating if an 'amr' claim is required.
Gets or sets a value indicating if an 'auth_time' claim is required.
Gets or sets a value indicating if an 'azp' claim is required.
Get or sets if a nonce is required.
Gets or sets a value indicating if a 'state' is required.
Gets or sets a value indicating if validation of 'state' is turned on or off.
Gets or sets a value indicating if a 'sub' claim is required.
Gets or set logic to control if a nonce is prefixed with a timestamp.
public OpenIdConnectProtocolValidator()
Creates a new instance of OpenIdConnectProtocolValidator,
Generates a value suitable to use as a nonce.
Returns a HashAlgorithm corresponding to string 'algorithm' after translation using HashAlgorithmMap.
Validates the 'token' according to .
public virtual void ValidateAuthenticationResponse(OpenIdConnectProtocolValidationContext validationContext)
Validates that an OpenID Connect response from 'authorization_endpoint" is valid as per .
Validates the 'code' according to .
Validates the claims in the 'id_token' as per .
Validates that the JwtSecurityToken contains the nonce.
Validates that the 'state' in message is valid.
Validates that an OpenID Connect response from "token_endpoint" is valid as per .
public virtual void ValidateUserInfoResponse(OpenIdConnectProtocolValidationContext validationContext)
Validates that an OpenIdConnect response from "userinfo_endpoint" is valid as per .