B
B
Bekkazy2018-03-16 13:34:03
Node.js
Bekkazy, 2018-03-16 13:34:03

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

1 answer(s)
A
Anton Shvets, 2018-03-16
@Xuxicheta

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');
});

somehow like that.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question