SamDecrock / node-http-ntlm

Node.js module to authenticate using HTTP NTLM
MIT License
192 stars 89 forks source link

Core http agent does not work in all cases, connection not being kept alive, returns 401 #50

Closed emcho92 closed 1 year ago

emcho92 commented 8 years ago

I tried to use this library in a MeteorJS environment, but with no success, the response was always 401. Besides my codebase I tried it in a bare Meteor project, and the result was the same. The NTLM handshake seemed to be working, it produced the necessary tokens, etc. However the connection was not being kept alive. In my efforts to fix the issue I stumbled upon #28 and reverted the changes made there, and after doing so the connection issue was gone and everything worked. This might be a Meteor related issue, however it does run on Node, so this is not clear to me, any explanations?

SamDecrock commented 7 years ago

What version of node does your Meteor build system rely on?

emcho92 commented 7 years ago

Node v4.2.1, but I am not sure if it's related to node.

SamDecrock commented 7 years ago

Are you doing any other requests too? It might be related to issue #5

SamDecrock commented 1 year ago

I added the option to pass in your own http agent, see https://github.com/SamDecrock/node-http-ntlm/issues/66