浏览代码

Installs required basexx when token package is installed. Fixes #1870.

Adds some debug messages when token verification fails for some reason.
master
damencho 7 年前
父节点
当前提交
c1fb1a7def

+ 5
- 0
debian/jitsi-meet-tokens.postinst 查看文件

@@ -64,6 +64,11 @@ case "$1" in
64 64
                    echo "Failed to install luajwtjitsi - try installing it manually"
65 65
                 fi
66 66
 
67
+                # Install basexx
68
+                if ! luarocks install basexx; then
69
+                   echo "Failed to install basexx - try installing it manually"
70
+                fi
71
+
67 72
                 if [ -x "/etc/init.d/prosody" ]; then
68 73
                     invoke-rc.d prosody restart
69 74
                 fi

+ 6
- 1
resources/prosody-plugins/mod_auth_token.lua 查看文件

@@ -58,7 +58,12 @@ end
58 58
 function provider.get_sasl_handler(session)
59 59
 
60 60
 	local function get_username_from_token(self, message)
61
-        local res = token_util:process_and_verify_token(session);
61
+        local res, error, reason = token_util:process_and_verify_token(session);
62
+
63
+        if (res == false) then
64
+            log("warn",
65
+                "Error verifying token err:%s, reason:%s", error, reason);
66
+        end
62 67
 
63 68
         local customUsername
64 69
             = prosody.events.fire_event("pre-jitsi-authentication", session);

+ 0
- 0
resources/prosody-plugins/mod_muc_size.lua 查看文件

@@ -1,8 +1,6 @@
1 1
 -- Prosody IM
2 2
 -- Copyright (C) 2017 Atlassian
3 3
 --
4 4
 
5 5
 local jid = require "util.jid";
6 6
 local it = require "util.iterators";

正在加载...
取消
保存