Browse Source

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

Adds some debug messages when token verification fails for some reason.
master
damencho 7 years ago
parent
commit
c1fb1a7def

+ 5
- 0
debian/jitsi-meet-tokens.postinst View File

64
                    echo "Failed to install luajwtjitsi - try installing it manually"
64
                    echo "Failed to install luajwtjitsi - try installing it manually"
65
                 fi
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
                 if [ -x "/etc/init.d/prosody" ]; then
72
                 if [ -x "/etc/init.d/prosody" ]; then
68
                     invoke-rc.d prosody restart
73
                     invoke-rc.d prosody restart
69
                 fi
74
                 fi

+ 6
- 1
resources/prosody-plugins/mod_auth_token.lua View File

58
 function provider.get_sasl_handler(session)
58
 function provider.get_sasl_handler(session)
59
 
59
 
60
 	local function get_username_from_token(self, message)
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
         local customUsername
68
         local customUsername
64
             = prosody.events.fire_event("pre-jitsi-authentication", session);
69
             = prosody.events.fire_event("pre-jitsi-authentication", session);

+ 0
- 0
resources/prosody-plugins/mod_muc_size.lua View File

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

Loading…
Cancel
Save