Wowza Community

Digest Auth for node.js module

Hi all,

I was working with no auth for my Http Requests. Changed now to use Digest to deploy in production, but what the fields name i have to use ?

There are some doc’s about this?

[HTML]WowzaApiProxy.prototype.GET = function (streamName) {

var deferred = Q.defer();

request({

uri: API_URL + “/incomingstreams/” + streamName,

method: “GET”,

headers: {

“Accept”: “application/json”

}

}, function(error, response, body) {

console.log(body);

if (error) {

deferred.reject(error)

} else {

deferred.resolve(JSON.parse(body));

}

});

return deferred.promise;

};[/HTML]

Thanks in advance.

Marcelo.

Hi Marcelo,

You can look at using a plugin to pass digest auth for your REST API commands in node.js.

Michelle