Node.js NTLM HTTP Authentication, how to handle the 3 types

后端 未结 4 601
遥遥无期
遥遥无期 2021-01-12 18:39

I\'m trying to get NTLM Authentication working w/ Node.js. I\'ve been reading this ( http://davenport.sourceforge.net/ntlm.html#theNtlmMessageHeaderLayout ). I send the head

4条回答
  •  一个人的身影
    2021-01-12 18:48

    Have a look at http://www.innovation.ch/personal/ronald/ntlm.html What you receive is a Type-2 Message. The pages explains it in a very practical way. You have to extract the server challenge (nonce) and the server flags.

    I just implemented a module for node.js to do just that: https://github.com/SamDecrock/node-http-ntlm

提交回复
热议问题