# Wowza REST api basic auth with Swagger?

**URL:** https://community.wowza.com/t/wowza-rest-api-basic-auth-with-swagger/102355
**Category:** Wowza Streaming Engine
**Created:** [December 6, 2024, 10:09am UTC](https://community.wowza.com/t/wowza-rest-api-basic-auth-with-swagger/102355 "2024-12-06T10:09:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Zarko\_Tomasevic](https://avatars.discourse-cdn.com/v4/letter/z/779978/32.png) [@Zarko\_Tomasevic](https://community.wowza.com/u/Zarko_Tomasevic)
#### Post date: [December 6, 2024, 10:09am UTC](https://community.wowza.com/t/wowza-rest-api-basic-auth-with-swagger/102355/1 "2024-12-06T10:09:33Z")

</div>

Hello , how to send basic auth to REST API with given Swagger package, when i want to try some API call it says “The request requires user authentication”.  
I found at Swagger index.html row for api key, but that doesn’t work with Wowza REST API.

---

<div class="post-metadata">

### Author: ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://community.wowza.com/u/Alex_C)
#### Post date: [December 11, 2024, 1:11pm UTC](https://community.wowza.com/t/wowza-rest-api-basic-auth-with-swagger/102355/2 "2024-12-11T13:11:30Z")

</div>

In the Wowza Streaming Engine /conf directory edit the Server.xml and set this line:  
`<DocumentationServerAuthenticationMethod>none</DocumentationServerAuthenticationMethod>`  
Then save the .xml file and restart Wowza Streaming Engine.  
[Access reference documentation for the REST API](https://www.wowza.com/docs/how-to-access-documentation-for-wowza-streaming-engine-rest-api)

---

<div class="post-metadata">

### Author: ![Zarko\_Tomasevic](https://avatars.discourse-cdn.com/v4/letter/z/779978/32.png) [@Zarko\_Tomasevic](https://community.wowza.com/u/Zarko_Tomasevic)
#### Post date: [December 11, 2024, 3:08pm UTC](https://community.wowza.com/t/wowza-rest-api-basic-auth-with-swagger/102355/3 "2024-12-11T15:08:28Z")

</div>

I did that, but, when i click on try out button it says , “The request requires user authentication”.

---

<div class="post-metadata">

### Author: ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://community.wowza.com/u/Alex_C)
#### Post date: [December 11, 2024, 3:37pm UTC](https://community.wowza.com/t/wowza-rest-api-basic-auth-with-swagger/102355/4 "2024-12-11T15:37:20Z")

</div>

Thanks for the clarification.  
The swagger system we provide does not have an option to use authentication.  
You would need to use Postman, and then use Basic Auth or Digest Auth in order to send commands to the server over 8087.

If you really want to use the swagger page, you need to disable authentication in the Server.xml for port 8087. To keep the server secure, I would suggest setting up a whitelist to only allow connections from certain IPs on port 8087. This is all done in the Server.xml

---

<div class="post-metadata">

### Author: ![Zarko\_Tomasevic](https://avatars.discourse-cdn.com/v4/letter/z/779978/32.png) [@Zarko\_Tomasevic](https://community.wowza.com/u/Zarko_Tomasevic)
#### Post date: [December 11, 2024, 4:29pm UTC](https://community.wowza.com/t/wowza-rest-api-basic-auth-with-swagger/102355/5 "2024-12-11T16:29:58Z")

</div>

If i disable authentication, server manager wont work, thanks anyway, look like i will use Postman.
