使用 node.js 进行 NTLM 身份验证 [英] NTLM authentication using node.js
问题描述
我需要使用 node.js 与使用 NTLM 代理身份验证的服务器进行通信.
I need to use node.js to communicate with a server using NTLM proxy authentication.
我使用了 2 个模块:
I have used 2 modules:
- node-curl https://github.com/jiangmiao/node-curl立>
- 请求,强烈推荐htps://github.com/mikeal/request
我没有找到有关 ntlm 请求模块的文档,虽然 node-curl 支持 curl 简单选项,但我没有找到有关如何为 CURLOPT_HTTPAUTH 指定 CURLAUTH_NTLM 的文档.
I found no documentation for the request module for ntlm , and though node-curl supports the curl easy options , I found no documentation about how to specify the CURLAUTH_NTLM for the CURLOPT_HTTPAUTH.
我想知道如何处理 NTLM 代理身份验证.我很想继续使用请求模块.
I want to know how to take care of the NTLM proxy authentication. I would love to continue using the request module.
推荐答案
写了一个 Node.js 库来做 HTTP NTLM Handshaking:https://github.com/SamDecrock/node-http-ntlm
Wrote a Node.js library to do the HTTP NTLM Handshaking: https://github.com/SamDecrock/node-http-ntlm
它是从 python-ntlm 库移植的.
It's ported from the python-ntlm library.
这篇关于使用 node.js 进行 NTLM 身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!