Skip to content
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

Merged
merged 2 commits into from
Nov 21, 2016

Conversation

MorrisJobke
Copy link
Member

cc @fancycode @LukasReschke


$time = $timeFactory->getTime();

$string = sprintf('%d:%s', $time + 3600, $sessionId);
Copy link
Member

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).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this returned?

Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* then calculates the user credentials on the fly for 1 hour

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke MorrisJobke force-pushed the turn-server-admin-setting branch from 7ffb59b to 17c4da6 Compare November 21, 2016 16:31
@MorrisJobke
Copy link
Member Author

@fancycode I changed it to 24h for now and we could tweak this later

@fancycode
Copy link
Member

🙈 fine with me

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke MorrisJobke force-pushed the turn-server-admin-setting branch from 31838dd to 32fe285 Compare November 21, 2016 16:52
@codecov-io
Copy link

Current coverage is 11.14% (diff: 35.41%)

Merging #120 into master will increase coverage by 1.32%

@@            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          

Powered by Codecov. Last update d06d10c...32fe285

@LukasReschke LukasReschke merged commit d7b46e5 into master Nov 21, 2016
@LukasReschke LukasReschke deleted the turn-server-admin-setting branch November 21, 2016 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants