-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jitsi Token Moderation Code Does Not Fire #8
Comments
me too. I check the log because |
hi @nvonahsen do you have any idea to how get Regards |
Hi @selvadt and @rajapulau ! I've installed using a fork of luajwt (https://github.com/ASolomatin/luajwt/tree/replace_luacrypto) and its working flawless for me. There is a a thread in jitsi forum that specify step-by-step how to deploy, if I find it I will edit thit post. The It is important to remember that for this plugin to work correctly the verification of the token has to be occurring. I am messing a bit with this code, with another objective (log presence of the user), maybe it helps understand the "flow" of the things in Prosody. You can check it here https://github.com/bryanasdev000/jitsi-logging-plugin/blob/dev/mod_presence_logger.lua |
I have try load https://github.com/bryanasdev000/jitsi-logging-plugin/blob/dev/mod_presence_logger.lua Is there I missing some step something to get the token? |
There's a great chance your JWT authentication is not working as intended. Its important to note that I dont have a guest session inside my Jitsi, all rooms are JWT authenticated, maybe this is a problem for you. Anyway, read and check if you Jitsi its configured correctly. Jitsi Secure Domain and Jitsi Tokens should bring a light. |
+1 its not working for my end |
FWIW, I was able to get this working -- step-by-step for a Ubuntu 18.02 is below -- the trick is to use the custom luajwt package that @bryanasdev000 mentions above. I've incorporated that https://gist.github.com/TimHeckel/8ae568083b136aad0f2474b3c86cb162 |
me too |
I successfully got the code to work after installing missing LUA libraries. I notice that doing some tracing of the code, "room.set_affiliation" works fine but both "room.handle_normal_presence" and "room.handle_first_presence" do not get executed at all causing "setupAffiliation" not to be executed.
This is how my JWT looks like:
{
"context": {
"user": {
"avatar": "123",
"name": "Jane Doe",
"id": "dsfsdfsd"
}
},
"sub":"dsfsdf",
"room":"testo",
"moderator": true
}
Please help. Thank you.
The text was updated successfully, but these errors were encountered: