From 87d9babbd3382536ab1225a37256f7e36bc49845 Mon Sep 17 00:00:00 2001 From: Subv Date: Sat, 23 May 2020 12:55:47 -0500 Subject: [PATCH] Fix conditionals in the liquid template for OpenID Connect conf. --- backend/templates/_openid_connect.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/templates/_openid_connect.conf b/backend/templates/_openid_connect.conf index 19aa606d..e5c2c798 100644 --- a/backend/templates/_openid_connect.conf +++ b/backend/templates/_openid_connect.conf @@ -1,4 +1,4 @@ -{% if openidc_enabled -%} +{% if openidc_enabled == 1 or openidc_enabled == true -%} access_by_lua_block { local openidc = require("resty.openidc") local opts = { @@ -18,7 +18,7 @@ ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR) end - {% if openidc_restrict_users_enabled -%} + {% if openidc_restrict_users_enabled == 1 or openidc_restrict_users_enabled == true -%} local function contains(table, val) for i=1,#table do if table[i] == val then