Passing original request context with forwardAuth


Recently trying out Traefik, specifically the forwardAuth middleware. Our authentication server needs to be aware of the original request's path (ie. GET /foo/bar) in order to complete authZ + authN

I'd hoped this context would be passed by default, or there'd be an API to allow developers to conditionally forward this info. I've also attempted to chain a Headers middleware or even replacePath to see if we can capture the original request's context, but no luck.

Has anyone run into this use case or have any guidance on how I can accomplish this? Our client requests are all live and in production, so modifying all request origins will not be practical at this stage.

Thanks, and appreciate it!