UNPKG

passport-client-cert

Version:

Passport.js strategy for TLS client certificate authentication

15 lines (14 loc) 269 B
/* * Stub the relevent parts of the request API */ exports.dummyReq = function(authorized, cert, headers) { return { socket: { getPeerCertificate: function() { return cert; }, authorized: authorized }, headers: headers }; };