I looked at some websites to better understand ntlm, like http://www.innovation.ch/personal/ronald/ntlm.html . And I started creating a demo that authenticates users in a nodejs application using ntlm. In this demo, I created an application with expressjs and express-ntlm modules . But still I didn’t understand how ntlm works with webservices nodejs?
I am having some questions related to ntlm authentication.
- How does ntlm work for webservice?
- How to set up login page while using ntlm? I am currently getting an input field for login credentials.
- What users can use for authentication? currently the application accepts anything like a username and password. Therefore, I do not understand what username and password he will use.
Here is my code.
var app, express, ntlm;
express = require('express');
ntlm = require('express-ntlm');
app = express();
app.all('/', ntlm());
app.get('/', function(request, response) {
response.send(request.ntlm);
});
app.listen(3000);
source
share