Jitsi token generator API and UI
alg
: "HS256" | "HS512"
default:HS256
secret
: string
requiredaud
: string
requirediss
: string
default: theaud
valuesub
: string
default:*
room
: string
default:*
nbf
: number | string (formatted date)
default:0
secexp
: number | string (formatted date)
default:3600
seccntx_user_id
: stringcntx_user_name
: stringcntx_user_email
: stringcntx_user_avatar
: string
e.g. https://mydomain.com/images/myavatar.pngcntx_user_affi
: "owner" | "member"cntx_user_lobby_bypass
: 0 | 1cntx_user_security_bypass
: 0 | 1cntx_room_lobby
: 0 | 1cntx_room_password
: stringcntx_feat_rec
: 0 | 1cntx_feat_live
: 0 | 1cntx_feat_screen
: 0 | 1
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