OpenIdConnectProtocolValidator.ValidateCHash Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 ValidatedIdToken is null.
Thrown if the 'c_hash' claim in the 'id_token' does not correspond to the 'code' in the OpenIdConnectMessage response.