共用方式為


OpenIdConnectProtocolValidator.ValidateAuthenticationResponse Method

Definition

Validates that an OpenID Connect response from 'authorization_endpoint" is valid as per https://openid.net/specs/openid-connect-core-1_0.html.

public virtual void ValidateAuthenticationResponse (Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolValidationContext validationContext);
abstract member ValidateAuthenticationResponse : Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolValidationContext -> unit
override this.ValidateAuthenticationResponse : Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolValidationContext -> unit
Public Overridable Sub ValidateAuthenticationResponse (validationContext As OpenIdConnectProtocolValidationContext)

Parameters

validationContext
OpenIdConnectProtocolValidationContext

the OpenIdConnectProtocolValidationContext that contains expected values.

Exceptions

Thrown if validationContext is null.

Thrown if the response is not spec compliant.

Remarks

It is assumed that the IdToken had ('aud', 'iss', 'signature', 'lifetime') validated.

Applies to