10

Is it possible to use http digest authentication with the Uptime tool? It uses Node.js' HTTPS library and says to use documentation here to read more about parameters. I don't see a way to specify digest authentication in the node.js https documentation (linked). Can anyone with more node.js chops point me in the right direction?

4

1 回答 1

4

不确定这是否是最干净的方法,但您可以使用支持摘要的库来实现自定义轮询器,因为我认为 http/https 轮询器使用的默认 http 库不支持开箱即用的摘要。

请求包似乎支持摘要式身份验证。这里(https://gist.github.com/macadada/aafaca2665347945ff66)是一个示例轮询器,我基于 https 轮询器并更改为使用请求库,以便它进行摘要身份验证。

于 2014-09-19T22:27:13.597 回答