pomerium/proxy
Cuong Manh Le 9821476086 proxy: fix redirect url with traefik forward auth
With Traefik in forward auth mode, when accessing:

	https://example.com/foo

traefik will send a request like this to proxy:

	https://pomerium?uri=https://example.com

The path "/foo" is passed to proxy via "X-Forwarded-Uri" instead of via
query parameters. When proxy redirects request to authenticate, it only
set the "pomerirum_redirect_url" to the value of "uri".

So after authentication success, the user will be redirected to example.com
instead of example.com/foo. If "X-Forwarded-Uri" is present, we should
add it to redirect uri, so the user will be redirected to right place.
2020-07-04 01:23:44 +07:00
..
forward_auth.go proxy: fix redirect url with traefik forward auth 2020-07-04 01:23:44 +07:00
forward_auth_test.go feature/databroker: user data and session refactor project (#926) 2020-06-19 07:52:44 -06:00
handlers.go cryptutil: move to pkg dir, add token generator (#1029) 2020-06-30 15:55:33 -06:00
handlers_test.go cryptutil: move to pkg dir, add token generator (#1029) 2020-06-30 15:55:33 -06:00
middleware.go proxy: fix wrong forward auth request 2020-07-03 00:00:20 +07:00
middleware_test.go feature/databroker: user data and session refactor project (#926) 2020-06-19 07:52:44 -06:00
proxy.go cryptutil: move to pkg dir, add token generator (#1029) 2020-06-30 15:55:33 -06:00
proxy_test.go envoy: Initial changes 2020-05-18 17:10:10 -04:00