The ForwardUsername setting works fine for the first request passed through the ldapAuth middleware, but will not get forwarded for subsequent requests.
Steps to reproduce:
Enable ForwardUsername in the middleware config
Authenticate with a request that is behind the ldapAuth middleware. Using traefik/whoami as the secured service works great for troubleshooting
Observe that the username header is set as expected.
Refresh the page to re-send the request
The username header is not set anymore.
I will contribute a PR fixing this issue in a moment.
Thanks a lot for this super-useful plugin!
The
ForwardUsername
setting works fine for the first request passed through the ldapAuth middleware, but will not get forwarded for subsequent requests.Steps to reproduce:
ForwardUsername
in the middleware configtraefik/whoami
as the secured service works great for troubleshootingI will contribute a PR fixing this issue in a moment.