8xFF / atm0s-media-server

Decentralized, Global-Scale Media Server written in Rust (WebRTC/Whip/Whep/Rtmp/Sip)
https://8xff.github.io/media-docs/
MIT License
212 stars 17 forks source link

Multi Tenancy Feature #222

Closed giangndm closed 4 months ago

giangndm commented 6 months ago

Each token will embedded with sub info for Multi Tenancy, it can be used for app_id in streaming platform

Token scheme:

{
  "sub": "app1",
  "exp": 1703752294122,
  "room": "room1",
  "peer": "user1",
  "protocol": "webrtc" | "whip" | "whep" | "rtmp" | "sip",
  "publish": true,
  "subscribe": true
}
giangndm commented 4 months ago

cleanup for new version