Parcourir la source

Merge pull request #764 from jitsi/switch_to_luajwt

Switch back to 'luajwt' in order to fix broken JWT
j8
hristoterezov il y a 9 ans
Parent
révision
e2c16c9c11
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 2
    2
      debian/jitsi-meet-tokens.postinst
  2. 1
    1
      prosody-plugins/token/util.lib.lua

+ 2
- 2
debian/jitsi-meet-tokens.postinst Voir le fichier

67
                 sed -i 's/ --modules_enabled = { "token_verification" }/ modules_enabled = { "token_verification" }/g' $PROSODY_HOST_CONFIG
67
                 sed -i 's/ --modules_enabled = { "token_verification" }/ modules_enabled = { "token_verification" }/g' $PROSODY_HOST_CONFIG
68
 
68
 
69
                 # Install luajwt
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
                 fi
72
                 fi
73
 
73
 
74
                 if [ -x "/etc/init.d/prosody" ]; then
74
                 if [ -x "/etc/init.d/prosody" ]; then

+ 1
- 1
prosody-plugins/token/util.lib.lua Voir le fichier

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

Chargement…
Annuler
Enregistrer