Wowza Community

How to toggle source security with the rest API?

So I know how to create publishers using the API, and if in the manager Applications/{name}/Source Security/RTSP Sources is set to “Require password authentication” everything works great.

It also works great if we don’t have a publisher and then have that option set to “Open”.
I’d like to offer our clients the ability to select whether they want to enable or disable authentication.

So while I can create/delete the publishers, I can’t work out how to toggle the authnetication requirements using the rest API.

Can I please have some examples of the requests I’d need to set

  • RTMP to Open
  • RTMP to Require password authentication
  • RTSP to Open
  • RTSP to Required password authentication

I was able to figure out how to toggle RTMP using the REST API. This is a screenshot from the Swagger doc. Haven’t found the RTSP equivalent (yet). It has to be in there because WSEM uses the REST API to perform the operation.

It appears that did… something, but not what we are after.
After running that it wiped out the modules from my config, and even so the toggle was not changed in the UI.

I did find that sending across a request to update the advanced config and toggling the securityPublishRequirePassword option there has worked for RTMP.

Similarly though, I have not been able to find how to toggle this for RTSP.

1 Like