# DigestFile authentication for REST API

**URL:** <https://community.wowza.com/t/digestfile-authentication-for-rest-api/52564>\
**Category:** Hire a Consultant\
**Tags:** security\
**Created:** [December 27, 2018, 6:48am UTC](https://community.wowza.com/t/digestfile-authentication-for-rest-api/52564 "2018-12-27T06:48:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adnan\_Obaid](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@Adnan\_Obaid](https://community.wowza.com/u/Adnan_Obaid)\
**Post date:** [December 27, 2018, 6:48am UTC](https://community.wowza.com/t/digestfile-authentication-for-rest-api/52564/1 "2018-12-27T06:48:08Z")

</div>

I have enabled digestfile authentication for REST API. how to make REST api call from nodejs?

---

<div class="post-metadata">

**Author:** ![Andrew\_Ramberg](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@Andrew\_Ramberg](https://community.wowza.com/u/Andrew_Ramberg)\
**Post date:** [January 14, 2019, 9:02pm UTC](https://community.wowza.com/t/digestfile-authentication-for-rest-api/52564/2 "2019-01-14T21:02:11Z")

</div>

Hello,

You can find some examples of nodejs using digest authentication online, such as the following:  
[https://www.dotnetcurry.com/nodejs/1237/digest-authentication-nodejs-application](https://www.dotnetcurry.com/nodejs/1237/digest-authentication-nodejs-application)

We have some curl and php examples here:  
[https://www.wowza.com/docs/how-to-query-wowza-rest-api#querycurl](https://www.wowza.com/docs/how-to-query-wowza-rest-api#querycurl)

Best regards,

Andrew

---

<div class="post-metadata">

**Author:** ![Sam\_Billings](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@Sam\_Billings](https://community.wowza.com/u/Sam_Billings)\
**Post date:** [May 23, 2023, 7:38am UTC](https://community.wowza.com/t/digestfile-authentication-for-rest-api/52564/3 "2023-05-23T07:38:52Z")

</div>

Hey Andrew  
a Question:  
In the link how-to-query-wowza-rest-api link above, after configuring RESTInterface like this:  
AuthenticationMethod to digest  
PasswordEncodingScheme to sha256

then you query it in curl like this:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/2X/4/4294c0feddbf355e7d163185e3fa282f8625905e.png)  
my question is, the username and password is given in cleartext here. Will it forward this in cleartext or will the curl command encode it using md5 before sending it to the REST API ? Can you please explain me?
