Use nginx to add Authentication to any Application

Alon Tamir

Great post. See also how it is used in kubernetes environment in the post: https://runkiss.blogspot.co…

Tibin George Kuriyan K K

I am using auth_request_set as below


auth_request_set $email $upstream_http_x_auth_request_email;
set_encode_base64 $encoded_string $email;
proxy_set_header Authorization “Basic $encoded_string”;

$email in nginx log is getting correct value, but for encoded_string $email is coming as empty.