Skip to content

rtc-switch startup script that validates connections with jwt

License

Notifications You must be signed in to change notification settings

scottmtp/rtc-switch-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rtc-switch-jwt

A rtc-switch with JWT for security.

About

A proof-of-concept rtc-switch that adds the following constraints for security:

  • A room must be specified in the rtc-switch connection options
  • A JSON Web Token must be included in the connection URL
  • The JWT must contain a "rooms" claim that includes the room specified above

Example

var quickconnect = require('rtc-quickconnect');
var token = '<jwt token>';

quickconnect('https://localhost:3000/', { room: 'qc-simple-demo', endpoints: ['/ws?token=' + token] })
  .on('call:started', function(id, pc, data) {
    console.log('we have a new connection to: ' + id);
  });

License

MIT © Scott Dietrich

About

rtc-switch startup script that validates connections with jwt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published