Skip to content

client-certificate-auth API Reference


client-certificate-auth API Reference / helpers / allowOU

Function: allowOU()

allowOU(ous): ValidationCallback

Defined in: helpers.js:126

Create a validation callback that allows certificates with matching Organizational Units.

Parameters

ous

string[]

Allowed Organizational Units

Returns

ValidationCallback

Example

ts
app.use(clientCertificateAuth(allowOU(['Engineering', 'DevOps'])));

Released under the MIT License.