CertificateAuthenticationEvents.OnCertificateValidated 属性

定义

当证书已通过基本验证但可能需要自定义验证时,将调用分配给此属性的委托。

public:
 property Func<Microsoft::AspNetCore::Authentication::Certificate::CertificateValidatedContext ^, System::Threading::Tasks::Task ^> ^ OnCertificateValidated { Func<Microsoft::AspNetCore::Authentication::Certificate::CertificateValidatedContext ^, System::Threading::Tasks::Task ^> ^ get(); void set(Func<Microsoft::AspNetCore::Authentication::Certificate::CertificateValidatedContext ^, System::Threading::Tasks::Task ^> ^ value); };
public Func<Microsoft.AspNetCore.Authentication.Certificate.CertificateValidatedContext,System.Threading.Tasks.Task> OnCertificateValidated { get; set; }
member this.OnCertificateValidated : Func<Microsoft.AspNetCore.Authentication.Certificate.CertificateValidatedContext, System.Threading.Tasks.Task> with get, set
Public Property OnCertificateValidated As Func(Of CertificateValidatedContext, Task)

属性值

注解

必须为此属性提供委托才能进行身份验证。 在委托中,应根据用户详细信息构造身份验证主体,并将其附加到上下文。主体属性,最后调用上下文。Success () ;

适用于