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?

Usman Ismail
  • 17,999
  • 14
  • 83
  • 165

1 Answers1

4

Not sure if this is the cleanest way, but you could implement a custom poller, using a library that supports digest, as I don't think the default http library used by the http/https pollers support digest out of the box.

The request package seems to support digest authentication. Here ( https://gist.github.com/macadada/aafaca2665347945ff66 ) is a sample poller that I based off the https poller and changed to use the request library so that it does digest authentication.

Mac Adada
  • 663
  • 1
  • 5
  • 7