Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use Http digest auth with Uptime?

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?

like image 600
Usman Ismail Avatar asked Sep 18 '14 15:09

Usman Ismail


1 Answers

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.

like image 83
Mac Adada Avatar answered Oct 03 '22 20:10

Mac Adada