Click or drag to resize

ICertificateAuthenticationProvider.Authenticate 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.X509Certificates.X509Certificate2
Personal certificate used for signing authentication text.
signatureInfo
Type: ASDSoft.WebSigner.Server.SignatureInfo
Information about signing request and response.

Return Value

Type: Task<Boolean>
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