About Authentication

mybirer

New Member
Hi,
I want to implement stream authentication & rest api authentication. But I can't do that.

For Rest api authentication, I configured flashphoner.properties file and inserted this line:
Code:
disable_rest_auth = false
I also accessed CLI and created user.
I got 404 error for this link: GET
Code:
https://xxxxxxxxxxxxxxxx.com:8888/rest-api/stream/find_all
I got 401 error for this link: POST
Code:
https://xxxxxxxxxxxxxxxx.com:8888/rest-api/stream/terminate
I added http authentication like this but still couldn't access.
Code:
https://user:password@xxxxxxxxxxxxxxxx.com:8888/rest-api/stream/find_all
I also want to secure streaming authentication. But I don't know how can I do that. I looked documentation but couldn't do that. I used to implement authentication for RTMP on Wowza. At Wowza, I was create username and password from dashboard. While making connection I was enter username and password on stream settings. Is there any option like this on flashphoner?

Thanks.
 

Max

Administrator
Staff member
Hello.
What WCS version you use?
In latest versions, REST API ports are 8081 for HTTP and 8444 for HTTPS. Ports 9091 and 8888 are used to access web interface and sample applications.
 

mybirer

New Member
Hi Max,
I'm using latest version 5.1.3511.
I could get response over 8888 port before. When I added disable_rest_auth = false to flashphoner.properties, I always get 404 over 8888 port.
Here is my wcs-manager.properties file
Code:
### MANAGER OPTIONS ####
-Dnode.enable_stdout=false
#-Dserver.port=9091
#-Dmanager.https_port=8888
#-Dmanager.rest_redirect_http_port=8081
#-Dmanager.rest_redirect_https_port=8444
#-Drest_template.user_agent=WCS5
#-Dnode.stdout_count_files=5
#-Dnode.stdout_max_file_size=1000000

# Uncomment this to enable https and http basic auth
#-Dspring.profiles.active=production

# Uncomment this to enable demo user
#-DstartWithDemoUser=true

### JVM OPTIONS ###

-Xmx512M
-XX:+PrintGCDateStamps
-XX:+PrintGCDetails
-Xloggc:/usr/local/FlashphonerWebCallServer/logs/gc-manager-
-Djava.net.preferIPv4Stack=true
-XX:+PrintGCDateStamps
 

Max

Administrator
Staff member
REST authentication was not supported in earlier versions when the ports 9091 and 8888 was used. For now, just post redirection (return 308 Permanent) is supported. So, to use REST authentication you should use ports 8081 and 8444, as described here.
 
Top