Click or drag to resize

ICertificateAuthenticationProviderAuthenticate Method

Implementor must authenticate user by certificate in own application authentication mechanizm.

Namespace:  ASDSoft.WebSigner.Server
Assembly:  ASDSoft.WebSigner.Server (in ASDSoft.WebSigner.Server.dll) Version: 2.5.0
Syntax
C#
Task<bool> Authenticate(
	X509Certificate2 certificate,
	SignatureInfo signatureInfo
)

Parameters

certificate
Type: System.Security.Cryptography.X509CertificatesX509Certificate2
Personal certificate used for signing authentication text.
signatureInfo
Type: ASDSoft.WebSigner.ServerSignatureInfo
Information about signing request and response.

Return Value

Type: TaskBoolean
True, if authentication is success, otherwise false.
Remarks
If authentication success, implementor must create and store user principal, for example in HttpContext.Current.User. Method called by infrastructure after success signing LoginContent type content.
See Also