Rest API Logic

73 views
Skip to first unread message

Ali Shahbour

unread,
Apr 5, 2016, 10:53:59 AM4/5/16
to TURN Server (Open-Source project)

Hello

I am trying run the server with RestAPI . i generated username and password using the logic in http://tools.ietf.org/html/draft-uberti-behave-turn-rest-00  but when testing it some times it work but most of the time no , how can i extend debugging so i can tell why authentication is not working .  this is how i tried it

Server:

[root@localhost restapi]# turnserver -V --use-auth-secret --static-auth-secret=testing --cert=/usr/share/turnserver/etc/turn_server_cert.pem --pkey=/usr/share/turnserver/etc/turn_server_pkey.pem  --cipher-list=ALL --lt-cred-mech
0: log file opened: /var/log/turn_12780_2016-04-05.log
0:
RFC 3489/5389/5766/5780/6062/6156 STUN/TURN Server
Version Coturn-4.5.0.2 'dan Eider'
0:
Max number of open files/sockets allowed for this process: 4096
0:
Due to the open files/sockets limitation,
max supported number of TURN Sessions possible is: 2000 (approximately)
0:

==== Show him the instruments, Practical Frost: ====

0: TLS supported
0: DTLS supported
0: DTLS 1.2 is not supported
0: TURN/STUN ALPN is not supported
0: Third-party authorization (oAuth) supported
0: GCM (AEAD) supported
0: OpenSSL compile-time version: OpenSSL 1.0.1e-fips 11 Feb 2013
0:
0: SQLite supported, default database location is /var/db/turndb
0: Redis supported
0: PostgreSQL supported
0: MySQL supported
0: MongoDB is not supported
0:
0: Default Net Engine version: 3 (UDP thread per CPU core)

=====================================================

0: Config file found: /etc/turnserver/turnserver.conf



Client Side:

turnutils_uclient -v -u 1459948283:9o4ysopssmimlg -w RSXNiBD1plTG3pjbl3k1LjzNYr8= 127.0.0.1


For the username :  1459948283:9o4ysopssmimlg 
  1. 1459948283 is generated by getting now + 86400
  2. 9o4ysopssmimlg is random string

For the password : calculateRFC2104HMAC(1459948283:9o4ysopssmimlg ,"testing")



Am i missing something ?


Thanks

Reply all
Reply to author
Forward
0 new messages