# Digest Auth for node.js module

**URL:** <https://community.wowza.com/t/digest-auth-for-node-js-module/46881>\
**Category:** Wowza Developer Dojo\
**Created:** [May 31, 2016, 4:26pm UTC](https://community.wowza.com/t/digest-auth-for-node-js-module/46881 "2016-05-31T16:26:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcelo\_Henrique\_Car](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@Marcelo\_Henrique\_Car](https://community.wowza.com/u/Marcelo_Henrique_Car)\
**Post date:** [May 31, 2016, 4:26pm UTC](https://community.wowza.com/t/digest-auth-for-node-js-module/46881/1 "2016-05-31T16:26:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [June 23, 2016, 8:27am UTC](https://community.wowza.com/t/digest-auth-for-node-js-module/46881/2 "2016-06-23T08:27:23Z")

</div>

Hi Marcelo,

You can look at using [a plugin](https://gist.github.com/LPGhatguy/aa3a65bff58e0070d488) to pass digest auth for your REST API commands in node.js.

Michelle
