jitsi-contrib / jitok

Jitsi Token Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jitok

Jitsi token generator API and UI

Demo

jitok.emrah.com

API Payload

  • alg: "HS256" | "HS512"
    default: HS256
  • secret: string
    required
  • aud: string
    required
  • iss: string
    default: the aud value
  • sub: string
    default: *
  • room: string
    default: *
  • nbf: number | string (formatted date)
    default: 0 sec
  • exp: number | string (formatted date)
    default: 3600 sec
  • cntx_user_id: string
  • cntx_user_name: string
  • cntx_user_email: string
  • cntx_user_avatar: string
    e.g. https://mydomain.com/images/myavatar.png
  • cntx_user_affi: "owner" | "member"
  • cntx_user_lobby_bypass: 0 | 1
  • cntx_user_security_bypass: 0 | 1
  • cntx_room_lobby: 0 | 1
  • cntx_room_password: string
  • cntx_feat_rec: 0 | 1
  • cntx_feat_live: 0 | 1
  • cntx_feat_screen: 0 | 1

curl example

JSON=$(cat <<EOF
{
  "alg":"HS256",
  "secret":"myappsecret",
  "aud":"myappid",
  "room":"*",
  "nbf":"2022-10-15T15:00+02:00",
  "exp":"2022-10-15T16:30+02:00",
  "cntx_user_id":"1ceb7fbc-beef-42a7-9ca1-a79a042fcba8",
  "cntx_user_name":"myname"
}
EOF
)

curl -H "Content-Type: application/json" -d "$JSON" https://jitok.emrah.com/api

About

Jitsi Token Generator

License:Apache License 2.0


Languages

Language:Svelte 46.8%Language:TypeScript 42.5%Language:JavaScript 4.1%Language:HTML 3.5%Language:Dockerfile 2.7%Language:Shell 0.3%