Skip to content

client-certificate-auth API Reference


client-certificate-auth API Reference / helpers / allOf

Function: allOf() ​

allOf(...callbacks): ValidationCallback

Defined in: helpers.js:774

Combine multiple validation callbacks with AND logic. All callbacks must return true for the certificate to be authorized.

Parameters ​

callbacks ​

...ValidationCallback[]

Validation callbacks to combine

Returns ​

ValidationCallback

Example ​

ts
app.use(clientCertificateAuth(allOf(
  allowIssuer({ O: 'My Company' }),
  allowOU(['Engineering', 'DevOps'])
)));

Released under the MIT License.