mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-19 12:41:24 +02:00
Use Jitsi domain in the JWT issuer
This commit is contained in:
parent
8534328921
commit
0410a6b3be
@ -167,8 +167,10 @@ function createJWTToken() {
|
|||||||
const header = {alg: 'HS256', typ: 'JWT'};
|
const header = {alg: 'HS256', typ: 'JWT'};
|
||||||
// Payload
|
// Payload
|
||||||
const payload = {
|
const payload = {
|
||||||
// TODO change this to refer to spec?
|
// As per Jitsi token auth, `iss` needs to be set to something agreed between
|
||||||
iss: 'app_id',
|
// JWT generating side and Prosody config. Since we have no configuration for
|
||||||
|
// the widgets, we can't set one anywhere. Using the Jitsi domain here probably makes sense.
|
||||||
|
iss: jitsiDomain,
|
||||||
sub: jitsiDomain,
|
sub: jitsiDomain,
|
||||||
aud: `https://${jitsiDomain}`,
|
aud: `https://${jitsiDomain}`,
|
||||||
room: "*",
|
room: "*",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user