README: nginx auth_request example refresh cookie handling
how to pass back the refreshed oauth2_proxy cookie from an nginx auth_request
This commit is contained in:
		
							parent
							
								
									7f5672b433
								
							
						
					
					
						commit
						6d295f8446
					
				|  | @ -373,6 +373,10 @@ server { | ||||||
|     proxy_set_header X-User  $user; |     proxy_set_header X-User  $user; | ||||||
|     proxy_set_header X-Email $email; |     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/; |     proxy_pass http://backend/; | ||||||
|     # or "root /path/to/site;" or "fastcgi_pass ..." etc |     # or "root /path/to/site;" or "fastcgi_pass ..." etc | ||||||
|   } |   } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue