Handle $request_id variable correctly in auth requests
This commit is contained in:
parent
2488fb0064
commit
3f1d13641c
1 changed files with 1 additions and 1 deletions
|
@ -1280,7 +1280,7 @@ stream {
|
||||||
# `auth_request` module does not support HTTP keepalives in upstream block:
|
# `auth_request` module does not support HTTP keepalives in upstream block:
|
||||||
# https://trac.nginx.org/nginx/ticket/1579
|
# https://trac.nginx.org/nginx/ticket/1579
|
||||||
access_by_lua_block {
|
access_by_lua_block {
|
||||||
local res = ngx.location.capture('{{ $authPath }}', { method = ngx.HTTP_GET, body = '' })
|
local res = ngx.location.capture('{{ $authPath }}', { method = ngx.HTTP_GET, body = '', share_all_vars = true })
|
||||||
if res.status == ngx.HTTP_OK then
|
if res.status == ngx.HTTP_OK then
|
||||||
ngx.var.auth_cookie = res.header['Set-Cookie']
|
ngx.var.auth_cookie = res.header['Set-Cookie']
|
||||||
{{- range $line := buildAuthUpstreamLuaHeaders $externalAuth.ResponseHeaders }}
|
{{- range $line := buildAuthUpstreamLuaHeaders $externalAuth.ResponseHeaders }}
|
||||||
|
|
Loading…
Reference in a new issue