Hi all,
I have an issue.
I’m having a php backend that interacts with Wowza Streaming Engine REST Api.
I’m using the WOWZA rest api to connect: https://github.com/WowzaMediaSystems/wse-rest-library-php
and also using their example. The wowza auth digest doesn’t work (the default auth), and I don’t know why.
I’m having everything set up: the users in the file, the method set up correctly, yet the server says that I don’t have credentials.
This is the response:
JSON REQUEST to http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/{MY_APP}/instances with verb GET: {“restURI”:“http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/{MY_APP}/instances”,“settings”:{}} RETURN: {“message”:“The request requires user authentication”,“success”:false,“wowzaServer”:“4.7.7”,“code”:“401”} {“message”:“The request requires user authentication”,“success”:false,“wowzaServer”:“4.7.7”,“code”:“401”}
My question is this: why is this not working?
Server.xml
<RESTInterface>
<Enable>true</Enable>
<IPAddress>*</IPAddress>
<Port>8087</Port>
<!-- none, basic, digest-->
<AuthenticationMethod>digest</AuthenticationMethod>
<DiagnosticURLEnable>true</DiagnosticURLEnable>
<SSLConfig>
<Enable>false</Enable>
<KeyStorePath></KeyStorePath>
<KeyStorePassword></KeyStorePassword>
<KeyStoreType>JKS</KeyStoreType>
<SSLProtocol>TLS</SSLProtocol>
<Algorithm>SunX509</Algorithm>
<CipherSuites></CipherSuites>
<Protocols></Protocols>
</SSLConfig>
<IPWhiteList>*</IPWhiteList>
<IPBlackList></IPBlackList>
<EnableXMLFile>false</EnableXMLFile>
<DocumentationServerEnable>true</DocumentationServerEnable>
<DocumentationServerPort>8089</DocumentationServerPort>
<!-- none, basic, digest-->
<DocumentationServerAuthenticationMethod>basic</DocumentationServerAuthenticationMethod>
<Properties>
</Properties>
</RESTInterface>
Users are saved in /conf/admin.password
What am I missing? The credentials are correct, because if I switch to basic auth, and call the server with http://{username}:{password}@localhost… works. The issue with the basic auth is that the WEB ui doesn’t work with that auth, so I’m left with either none as auth, or digest, and digest doesn’t work with the library.
Thanks,
Andrei