mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-24 03:59:49 +02:00
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. |
||
---|---|---|
.. | ||
forward_auth.go | ||
forward_auth_test.go | ||
handlers.go | ||
handlers_test.go | ||
middleware.go | ||
middleware_test.go | ||
proxy.go | ||
proxy_test.go |