Closed 10der closed 7 years ago
Hey, thank you, I added it to the code, it's already on the master branch. When auth.username and auth.password are specified in the config, the plugin not only sends them inside the Auth header of the request but also in form of such an Authorization header.
please add to support Fibaro HC2 with Basic HTTP authentication
headers: { 'Authorization': 'Basic ' + new Buffer(username + ':' + passw).toString('base64') }
see also: https://dzone.com/articles/nodejs-call-https-basic