Skip to content

Commit 4428b52

Browse files
committed
Fix conditionals in the liquid template for OpenID Connect conf.
1 parent 8e1bfe5 commit 4428b52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/templates/_openid_connect.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% if openidc_enabled -%}
1+
{% if openidc_enabled == 1 or openidc_enabled == true -%}
22
access_by_lua_block {
33
local openidc = require("resty.openidc")
44
local opts = {
@@ -18,7 +18,7 @@
1818
ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
1919
end
2020

21-
{% if openidc_restrict_users_enabled -%}
21+
{% if openidc_restrict_users_enabled == 1 or openidc_restrict_users_enabled == true -%}
2222
local function contains(table, val)
2323
for i=1,#table do
2424
if table[i] == val then

0 commit comments

Comments
 (0)