Skip to content

Commit 0410a6b

Browse files
committed
Use Jitsi domain in the JWT issuer
1 parent 8534328 commit 0410a6b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vector/jitsi/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,10 @@ function createJWTToken() {
167167
const header = {alg: 'HS256', typ: 'JWT'};
168168
// Payload
169169
const payload = {
170-
// TODO change this to refer to spec?
171-
iss: 'app_id',
170+
// As per Jitsi token auth, `iss` needs to be set to something agreed between
171+
// JWT generating side and Prosody config. Since we have no configuration for
172+
// the widgets, we can't set one anywhere. Using the Jitsi domain here probably makes sense.
173+
iss: jitsiDomain,
172174
sub: jitsiDomain,
173175
aud: `https://${jitsiDomain}`,
174176
room: "*",

0 commit comments

Comments
 (0)