From 9f3c209096e65b748c92f70f62004db40f40ebb1 Mon Sep 17 00:00:00 2001 From: paweldomas Date: Tue, 2 Aug 2016 12:34:32 -0500 Subject: [PATCH] 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 --- debian/jitsi-meet-tokens.postinst | 4 ++-- prosody-plugins/token/util.lib.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/jitsi-meet-tokens.postinst b/debian/jitsi-meet-tokens.postinst index fe9b555ea..fc26331a8 100644 --- a/debian/jitsi-meet-tokens.postinst +++ b/debian/jitsi-meet-tokens.postinst @@ -67,8 +67,8 @@ case "$1" in sed -i 's/ --modules_enabled = { "token_verification" }/ modules_enabled = { "token_verification" }/g' $PROSODY_HOST_CONFIG # Install luajwt - if ! luarocks install jwt; then - echo "Failed to install jwt - try installing it manually" + if ! luarocks install luajwtjitsi; then + echo "Failed to install luajwtjitsi - try installing it manually" fi if [ -x "/etc/init.d/prosody" ]; then diff --git a/prosody-plugins/token/util.lib.lua b/prosody-plugins/token/util.lib.lua index ed5d4eb52..641ce1d78 100644 --- a/prosody-plugins/token/util.lib.lua +++ b/prosody-plugins/token/util.lib.lua @@ -1,7 +1,7 @@ -- Token authentication -- Copyright (C) 2015 Atlassian -local jwt = require "jwt"; +local jwt = require "luajwtjitsi"; local _M = {};