소스 검색

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

Adds some debug messages when token verification fails for some reason.
efficient_tiling
damencho 7 년 전
부모
커밋
c1fb1a7def
3개의 변경된 파일11개의 추가작업 그리고 1개의 파일을 삭제
  1. 5
    0
      debian/jitsi-meet-tokens.postinst
  2. 6
    1
      resources/prosody-plugins/mod_auth_token.lua
  3. 0
    0
      resources/prosody-plugins/mod_muc_size.lua

+ 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";

Loading…
취소
저장