From 6fab314f7203f4d652bb34247abb4e7cb497c41d Mon Sep 17 00:00:00 2001 From: Patrick Fuller Date: Sun, 16 Jul 2017 16:23:11 -0500 Subject: [PATCH] Improved documentation for auth request token --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5484267..792f29d 100644 --- a/README.md +++ b/README.md @@ -370,9 +370,11 @@ server { # requires running with --set-xauthrequest flag auth_request_set $user $upstream_http_x_auth_request_user; auth_request_set $email $upstream_http_x_auth_request_email; - auth_request_set $token $upstream_http_x_auth_request_access_token; # Available with --pass-access-token flag proxy_set_header X-User $user; proxy_set_header X-Email $email; + + # if you enabled --pass-access-token, this will pass the token to the backend + auth_request_set $token $upstream_http_x_auth_request_access_token; proxy_set_header X-Token $token; # if you enabled --cookie-refresh, this is needed for it to work with auth_request