Coder Social home page Coder Social logo

arifulislamat / jitsi-jwt-token-gen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jitsi-contrib/jitok

0.0 0.0 0.0 239 KB

Jitsi Token Generator

License: Apache License 2.0

Shell 0.32% JavaScript 4.09% TypeScript 42.64% HTML 3.53% Dockerfile 2.67% Svelte 46.76%

jitsi-jwt-token-gen's Introduction

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

jitsi-jwt-token-gen's People

Contributors

emrahcom avatar shawnchin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.