CertificateAuthenticationEvents.OnCertificateValidated Property
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.
A delegate assigned to this property will be invoked when a certificate has passed basic validation, but where custom validation may be needed.
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)
Property Value
Remarks
You must provide a delegate for this property for authentication to occur. In your delegate you should construct an authentication principal from the user details, attach it to the context.Principal property and finally call context.Success();