-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add admin setting to specify a TURN server and a shared secret #120
Conversation
|
||
$time = $timeFactory->getTime(); | ||
|
||
$string = sprintf('%d:%s', $time + 3600, $sessionId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TTL should probably a parameter and must also be returned to the user, so it can refresh the credentials before they expire (which can happen if the user is connected longer than the TTL).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this returned?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately I don't know how SimpleWebRTC handles this.
For spreed-webrtc we have a field in our signalling protocol to include the (optional) TTL for TURN credentials.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the signalling server they just default to 24h: https://github.com/andyet/signalmaster/blob/e98d388a2107330948616661064cb329d2749314/sockets.js#L114
* then calculates the user credentials on the fly for 1 hour Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7ffb59b
to
17c4da6
Compare
@fancycode I changed it to 24h for now and we could tweak this later |
🙈 fine with me |
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
31838dd
to
32fe285
Compare
Current coverage is 11.14% (diff: 35.41%)@@ master #120 diff @@
=========================================
Files 13 13
Lines 713 754 +41
Methods 49 50 +1
Messages 0 0
Branches 0 0
=========================================
+ Hits 70 84 +14
- Misses 643 670 +27
Partials 0 0
|
cc @fancycode @LukasReschke