Answer the question
In order to leave comments, you need to log in
How to implement ntlm authorization in node js?
I use express, node-sspi.
The bottom line is that it skips those users who are in a certain group, and transfers the rest to another page where there are forms for entering a login and password
Answer the question
In order to leave comments, you need to log in
Express basics
expressjs.com/ru/guide/using-middleware.html#middl...
app.get('/myform', (req, res, next) => {
if (req.user.inMyGroup()) {
return next();
}
res.render('loginform');
}, (res, req) => {
res.render('mypage');
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question