Skip to main content

CertificateResolver

@webda/core


Interface: CertificateResolver

Defined in: packages/core/src/core/hooks.ts:180

Resolves a verified client certificate into a user

Properties​

mode?​

readonly optional mode?: "login" | "factor"

Defined in: packages/core/src/core/hooks.ts:182

Whether a certificate authenticates on its own or adds a factor to an existing session

Methods​

resolveCertificate()​

resolveCertificate(cert, context): Promise<CertificateResolution>

Defined in: packages/core/src/core/hooks.ts:188

Parameters​

cert​

ClientCertificate

verified client certificate

context​

Context

context of the request

Returns​

Promise<CertificateResolution>

the user authenticated by the certificate, undefined when the certificate is unknown or refused