Username header does not get set on subsequent requests
sseemayer opened this issue · 2 comments
sseemayer commented
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:
- 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.
sseemayer commented