Set username in the EDGE nginx variables from a lua script
@@ -116,6 +116,7 @@ if token then
ngx.log(ngx.WARN,"[SECURITY] Application: " .. ngx.var.route_location_root ..
"; User: " .. username .. "; Status: Successfully authenticated.")
end
+ ngx.var.auth_user_name = username
ngx.req.set_header('X-Auth-User', username)
return
end
