You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good Afternoon, I have been trying to implement this capability but i am having some trouble.
The routes are located in /routes/users.js
The passport.use(new ClientCertStrategy..... is located in auth/authroization.js
I am attempting to invoke the Client-cert strategy on the user.js line:
router.use('/user', auth.authenticate('client-cert'), function(req, res, next) {
console.log('authenticated');
next();
});
But all I get is a 401 error.
In the Authorization.js i have simplified it to return a user but still nothing:
passport.use(new ClientCertStrategy(function(clientCert, done)
{
var user = "test";
done(null, user);
}
));
module.exports = passport;
anysuggestions?
The text was updated successfully, but these errors were encountered:
Good Afternoon, I have been trying to implement this capability but i am having some trouble.
The routes are located in /routes/users.js
The passport.use(new ClientCertStrategy..... is located in auth/authroization.js
I am attempting to invoke the Client-cert strategy on the user.js line:
router.use('/user', auth.authenticate('client-cert'), function(req, res, next) {
console.log('authenticated');
next();
});
But all I get is a 401 error.
In the Authorization.js i have simplified it to return a user but still nothing:
passport.use(new ClientCertStrategy(function(clientCert, done)
{
var user = "test";
done(null, user);
}
));
module.exports = passport;
anysuggestions?
The text was updated successfully, but these errors were encountered: