EmbarkStudios / wg-ui

WireGuard Web UI for self-serve client configurations, with optional auth.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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).

commented

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;

commented

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.

commented

very good it's working for you now.
guess this issue can be closed then.