netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
10.97k stars 499 forks source link

Authelia Integration #2474

Open pugnobellum opened 2 months ago

pugnobellum commented 2 months ago

Is your feature request related to a problem? Please describe. Only Zitadel, Keycloak, and Authentik are currently supported On https://docs.netbird.io/selfhosted/identity-providers there is no setup information for Authelia even though it does support OpenID (OIDC) protocol (https://www.authelia.com/integration/openid-connect/introduction/).

Describe the solution you'd like Addition of support for and instructions for Authelia as identity provider I have Authelia for OIDC currently for Immich so it is working well overall, I tried to guess what to use for redirect uris and I think this is where the problem lies for NetBird integration.

Describe alternatives you've considered I considered using Authentik but I already have Authelia (v4.38.10) working well. I am on unraid (6.12.13) using the docker compose method of deployment. SWAG is my reverse proxy (https://docs.linuxserver.io/general/swag/).

Additional context Container spins up well. I go to netbird.example.com, I login with Authelia and it authenticates properly then sits on the NetBird loading screen for about 20 seconds and then navigates back to the Authelia login screen. I have all config files attached for review so you can see what I have tried so far if that helps.

Docker Compose docker-compose.txt

Management.json management.json

openid-configuration.json openid-configuration.json

SWAG subdomain.conf netbird.subdomain.txt

Authelia Configuration configuration.txt

NetBird logs NetBirdLogs.txt

Authelia logs AutheliaLogs.json

Get to this screen, click accept, it goes to loading screen of NetBird (example.netbird.com) stays for 20 seconds then back to this screen: Screenshot 2024-08-23 at 08-03-37 Login - Authelia

victoitor commented 1 week ago

There is a discussion on authelia's github about his issue which might help.