mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
Use Jitsi domain in the JWT issuer
This commit is contained in:
parent
8534328921
commit
0410a6b3be
1 changed files with 4 additions and 2 deletions
|
@ -167,8 +167,10 @@ function createJWTToken() {
|
|||
const header = {alg: 'HS256', typ: 'JWT'};
|
||||
// Payload
|
||||
const payload = {
|
||||
// TODO change this to refer to spec?
|
||||
iss: 'app_id',
|
||||
// As per Jitsi token auth, `iss` needs to be set to something agreed between
|
||||
// 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,
|
||||
aud: `https://${jitsiDomain}`,
|
||||
room: "*",
|
||||
|
|
Loading…
Reference in a new issue