unable to use goauthentik proxy
ks32 opened this issue · comments
After successful goauthentik authentication, wg-ui shows same Logged in as anonymous.
Is there any other configuration?
my setup is authentik (goauthentik.io) and NPM (Nginx Proxy Manager).
Did you set the auth-user-header option?
--auth-user-header="X-Authentik-Username"
following is added in NPM
proxy_set_header X-authentik-username $authentik_username;
following is added in NPM proxy_set_header X-authentik-username $authentik_username;
you also have to tell wg-ui which header to look for using the option I mentioned in my last comment.
how to set it? I am using wg-ui docker-compose method.
okay got it. Added following in docker-compose
entrypoint: '/wireguard-ui --auth-user-header="X-Authentik-email"'
It is working now.
very good it's working for you now.
guess this issue can be closed then.