From 6d295f8446b084bbfb81d94ac4058c466df443e9 Mon Sep 17 00:00:00 2001 From: Pierce Lopez Date: Mon, 24 Apr 2017 17:59:21 -0400 Subject: [PATCH] README: nginx auth_request example refresh cookie handling how to pass back the refreshed oauth2_proxy cookie from an nginx auth_request --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 6ab8de5..da0962e 100644 --- a/README.md +++ b/README.md @@ -373,6 +373,10 @@ server { proxy_set_header X-User $user; proxy_set_header X-Email $email; + # if you enabled --cookie-refresh, this is needed for it to work with auth_request + auth_request_set $auth_cookie $upstream_http_set_cookie; + add_header Set-Cookie $auth_cookie; + proxy_pass http://backend/; # or "root /path/to/site;" or "fastcgi_pass ..." etc }