Closed a-wing closed 2 months ago
We need a login page in liveman webui @rocka
When you login, you can create a token for single stream.
About create a token:
id
: stream id, use *
match any stream id
duration
: Validity duration (second)
Permission:
subscribe
, you can use whep
publish
, you can use whip
admin
, you can use delete and cascade...curl -X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IioiLCJleHAiOjE3MjU2OTg0MjYsIm1vZGUiOjd9.sKmH2AbLCER46eDwJm9MFLPoqavvXAzcNkCcXA1qTXs' \
http://localhost:8888/token \
-d '{"id":"233","duration":3600,"subscribe":true,"publish":true,"admin":true}'
How to enabled auth: at conf
liveman.toml
Use conf start
Get Json Web Token
Use Json Web Token: