From a64a58e7adcc26bfc74af2475168934ec945acd4 Mon Sep 17 00:00:00 2001 From: Hans Zandbelt Date: Wed, 19 Jun 2024 20:06:15 +0200 Subject: [PATCH] allow NGINX primitives in if block within location block in http block Signed-off-by: Hans Zandbelt --- ChangeLog | 1 + include/oauth2/nginx.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 42c89d3..1c74142 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 06/19/2024 - add NGINX macros/functions for setting claim variables in the request context see OpenIDC/ngx_oauth2_module#7; thanks @@smanolache and @pladen +- allow NGINX primitives in an if block within a location block in the http block - bump to 1.6.3dev . 06/05/2024 diff --git a/include/oauth2/nginx.h b/include/oauth2/nginx.h index f0ae345..9fabd94 100644 --- a/include/oauth2/nginx.h +++ b/include/oauth2/nginx.h @@ -113,7 +113,7 @@ #define OAUTH2_NGINX_CMD(take, module, directive, primitive) \ { \ ngx_string(directive), \ - NGX_HTTP_LOC_CONF | NGX_CONF_TAKE##take, \ + NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE##take, \ ngx_##module##_set_##primitive, NGX_HTTP_LOC_CONF_OFFSET, \ 0, NULL \ }