From d6a949ca63b3d1db6de44f534bfaa0dbdaf21906 Mon Sep 17 00:00:00 2001 From: Aaron van Meerten Date: Wed, 5 Jun 2019 19:23:16 -0500 Subject: [PATCH] prosody: allow token auth module override --- prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua b/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua index 7717da2..2b53c7b 100644 --- a/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua +++ b/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua @@ -7,6 +7,7 @@ http_default_host = "{{ .Env.XMPP_DOMAIN }}" {{ $JWT_ASAP_KEYSERVER := .Env.JWT_ASAP_KEYSERVER | default "" }} {{ $JWT_ALL_EMPTY := .Env.JWT_ALLOW_EMPTY | default "0" | toBool }} {{ $JWT_AUTH_TYPE := .Env.JWT_AUTH_TYPE | default "token" }} +{{ $JWT_TOKEN_AUTH_MODULE := .Env.JWT_TOKEN_AUTH_MODULE | default "token_verification" }} {{ if and $ENABLE_AUTH (eq $AUTH_TYPE "jwt") .Env.JWT_ACCEPTED_ISSUERS }} asap_accepted_issuers = { "{{ join "\",\"" (splitList "," .Env.JWT_ACCEPTED_ISSUERS) }}" } @@ -85,7 +86,7 @@ Component "{{ .Env.XMPP_MUC_DOMAIN }}" "muc" "{{ join "\";\n\"" (splitList "," .Env.XMPP_MUC_MODULES) }}"; {{ end }} {{ if .Env.JWT_ENABLE_TOKEN_AUTH | default "0" | toBool }} - "token_verification"; + "{{ $JWT_TOKEN_AUTH_MODULE }}"; {{ end }} }