Hi.
I take some days testing and testing and I couldn’t get it done…
I think that I’m writing wrong the token.
Once I broke a server, I create a brand new server and installed it 2 days ago jitsi again.
The server is: Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-101-generic x86_64)
If I use the server without tokens (in anonymous mode), it works just fine and also in that mode, if I send the jwt parameter, it uses the avatar and the name…
However I need to be used in token mode (or any other user mode…)…
----I’m not sure if I create the token ok
So I configured my https://jitsi4.inxpirius.com server (this is my test server)
I modify the /etc/prosody/conf.d/jitsi4.inxpirius.com.cfg.lua file with the following:
On the VirtualHost “jitsi4.inxpirius.com”
I replaced authentication with “token”
Add:
app_id=“MYAPP_ID_TEST”
app_secret=“MySecretPassword123”
(I know this is senstivite information, but this is a test server, and I want this to work)
I verified that c2s_require_encryption = false (it was like this previously)
And added to the muc the token_verification:
Component “conference.jitsi4.inxpirius.com” “muc”
storage = “none”
modules_enabled = {
“muc_meeting_id”;
“muc_domain_mapper”;
“token_verification”;
}
admins = { “focus@auth.jitsi4.inxpirius.com” }
muc_room_locking = false
muc_room_default_public_jids = true
Restarted everything:
service jicofo stop && service jitsi-videobridge2 stop && service prosody restart && service jicofo start && service jitsi-videobridge2 start
And then I create a jwt to test it with “https://jwt.io/”
Header
{
“alg”: “HS256”,
“typ”: “JWT”
}
Payload
{
“context”: {
“user”: {
“avatar”: “http://www.gym-gy.com/images/playstore.png”,
“name”: “Nombre Ejemplo”,
“email”: “nombre@ejemplo.com”,
“id”: “1”
},
“group”: “grupo_1”
},
“aud”: “jitsi4”,
“iss”: “MYAPP_ID_TEST”,
“sub”: “inxpirius.com”,
“room”: “ReunionTest”
}
The iss is the same as the configuration, the Room is the same as the URL, the groups does not exists (I understand that is something that is not used by JITSI…
And in the signature I haven’t choose the “secret base 64 encode”
Later I entered:
That is what the web page https://jwt.io/ created…
What am I doing wrong? I think I’m doing something wrong with the token… ON the jicofo.log There is nothing strange…
On the jvb.log it keep saying something like this:
2020-05-20 00:04:23.743 INFO: [21] Videobridge.createConference#320: create_conf, id=f5208d86a9f097fc gid=null logging=false
2020-05-20 00:04:23.751 INFO: [21] AbstractHealthCheckService.run#171: Performed a successful health check in PT0.009226S. Sticky failure: false
But it doesn’t seem to be the problem…
Can you help me on this?