Condividi tramite


OpenIdConnectProtocolValidator.ValidateCHash Method

Definition

Validates the 'code' according to https://openid.net/specs/openid-connect-core-1_0.html.

protected virtual void ValidateCHash (Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolValidationContext validationContext);
abstract member ValidateCHash : Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolValidationContext -> unit
override this.ValidateCHash : Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolValidationContext -> unit
Protected Overridable Sub ValidateCHash (validationContext As OpenIdConnectProtocolValidationContext)

Parameters

validationContext
OpenIdConnectProtocolValidationContext

A OpenIdConnectProtocolValidationContext that contains the protocol message to validate.

Exceptions

Thrown if the 'c_hash' claim in the 'id_token' does not correspond to the 'code' in the OpenIdConnectMessage response.

Applies to