Skip to content

mtlsAuthenticateSubject

function mtlsAuthenticateSubject(options?): AuthenticateFn;

Defined in: src/http/mtls.ts:281

Create an mTLS authenticate callback using certificate subject CN.

Extracts the Subject Common Name as principal and populates claims with the full DN, serial number (hex), and not_valid_after.

ParameterType
options?{ allowedSubjects?: ReadonlySet<string> | null; checkExpiry?: boolean; domain?: string; header?: string; }
options.allowedSubjects?ReadonlySet<string> | null
options.checkExpiry?boolean
options.domain?string
options.header?string

AuthenticateFn