瀏覽代碼

Switch back to 'luajwt' in order to fix broken JWT

Temporarily reference 'luajwtjitsi' luarock for immediate
deployment until our changes with RS256 support
eventually get merged with the master
master
paweldomas 9 年之前
父節點
當前提交
9f3c209096
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2
    2
      debian/jitsi-meet-tokens.postinst
  2. 1
    1
      prosody-plugins/token/util.lib.lua

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

@@ -67,8 +67,8 @@ case "$1" in
67 67
                 sed -i 's/ --modules_enabled = { "token_verification" }/ modules_enabled = { "token_verification" }/g' $PROSODY_HOST_CONFIG
68 68
 
69 69
                 # Install luajwt
70
-                if ! luarocks install jwt; then
71
-                   echo "Failed to install jwt - try installing it manually"
70
+                if ! luarocks install luajwtjitsi; then
71
+                   echo "Failed to install luajwtjitsi - try installing it manually"
72 72
                 fi
73 73
 
74 74
                 if [ -x "/etc/init.d/prosody" ]; then

+ 1
- 1
prosody-plugins/token/util.lib.lua 查看文件

@@ -1,7 +1,7 @@
1 1
 -- Token authentication
2 2
 -- Copyright (C) 2015 Atlassian
3 3
 
4
-local jwt = require "jwt";
4
+local jwt = require "luajwtjitsi";
5 5
 
6 6
 local _M = {};
7 7
 

Loading…
取消
儲存