Delen via


OpenIdConnectProtocolValidator.ValidateUserInfoResponse Method

Definition

Validates that an OpenIdConnect response from "useinfo_endpoint" is valid as per https://openid.net/specs/openid-connect-core-1_0.html.

public virtual void ValidateUserInfoResponse (Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolValidationContext validationContext);
abstract member ValidateUserInfoResponse : Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolValidationContext -> unit
override this.ValidateUserInfoResponse : Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolValidationContext -> unit
Public Overridable Sub ValidateUserInfoResponse (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.

Applies to