sub must contain the pubkey again, leave the jwt identity out of 39004 for now.

This commit is contained in:
fiatjaf
2026-03-12 10:26:19 -03:00
parent 133d7f9df8
commit cde5d38f6d

6
29.md
View File

@@ -58,6 +58,8 @@ The `Authorization` event should be of kind `27235` and contain a tag `["u", "ht
Relays should enforce access control at the LiveKit JWT creation time according to the group settings.
Relays MUST set the `sub` property on the issued JWT (called "identity" in the standard LiveKit libraries) such that the initial 64 characters correspond to the lowercase hex public key of the Nostr user. The same user can be issued multiple JWTs and join the same LiveKit room multiple times, so relays are expected to appending a random identifier to those 64 characters.
In order to inform clients about relay support for AV (so they can display that option for users when creating or editing groups) relays should serve a status code `204` at `https://relay.tld/.well-known/nip29/livekit`.
## Event definitions
@@ -238,7 +240,7 @@ This is an event that MAY be published by the relay informing users and clients
This should be updated whenever a new user leaves or joins a group, clients are expected to be actively subscribed to it.
The event MUST contain zero or more `participant` tags with the participant's public key as lowercase hex and their identity in the LiveKit context (the identity is defined by the relay at JWT creation time and recorded in the JWT `sub` field).
The event MUST contain zero or more `participant` tags with the participant's public key as lowercase hex.
```jsonc
{
@@ -246,7 +248,7 @@ The event MUST contain zero or more `participant` tags with the participant's pu
"content": "",
"tags": [
["d", "<group-id>"],
["participant", "<pubkey>", "<jwt-identity>"],
["participant", "<pubkey>"],
// other participants...
],
// other fields...