[GH-ISSUE #2515] Unable to authenticate with Authentik SSO #5355

Open
opened 2026-08-05 01:02:46 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @excaliburzarau on GitHub (Sep 2, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2515

Describe the problem

When trying to connect a mobile device or a laptop, after pressing to connect, the Netbird redirects me to Authentik, then it redirects me to a localhost:53000 page saying that i am now connected.
After i go back to the Netbird menu, i press to connect and it gets stuck on connecting. On the logs it reports that no peer auth method provided, please use a setup key or interactive SSO login and i can actually see that on the it does not get an user Id with the code accountID: UNKNOWN this can be verified on the image below.

To Reproduce

Steps to reproduce the behavior:

  1. Go to the Netbird client.
  2. Click on Change Server.
  3. Add the server.
  4. Authenticate on Authentik.
  5. Go back to the Netbird client and connect.

Expected behavior

Authenticate with the Authentik user and connect the Netbird client to my self-hosted server.

Are you using NetBird Cloud?

It is a self-host NetBird's control plane.

NetBird version

v0.28.9

NetBird status -dA output:

Not applicable

Do you face any (non-mobile) client issues?

I have issues both on the mobile client and the laptop.
Unable to run the command for the same reason as above.

Screenshots

Sem título

363506711-3ba8edcf-b368-4a31-a7aa-8d292b6d38c7

363506706-149e918a-b354-4318-8847-f976333d772e

Additional context

I believe that the Authentik application is sending the User ID but for some reason the Netbird does not receive the User ID presenting the error accountID: UNKNOWN .
If i try to set a different scope on the Authentik application it does get the data from Authentik which i can see on the Netbird logs.

Can someone give me an idea of what i might be missing?

Thank you all in advance.

Originally created by @excaliburzarau on GitHub (Sep 2, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2515 **Describe the problem** When trying to connect a mobile device or a laptop, after pressing to connect, the Netbird redirects me to Authentik, then it redirects me to a localhost:53000 page saying that i am now connected. After i go back to the Netbird menu, i press to connect and it gets stuck on connecting. On the logs it reports `that no peer auth method provided, please use a setup key or interactive SSO login` and i can actually see that on the it does not get an user Id with the code `accountID: UNKNOWN` this can be verified on the image below. **To Reproduce** Steps to reproduce the behavior: 1. Go to the Netbird client. 2. Click on Change Server. 3. Add the server. 4. Authenticate on Authentik. 5. Go back to the Netbird client and connect. **Expected behavior** Authenticate with the Authentik user and connect the Netbird client to my self-hosted server. **Are you using NetBird Cloud?** It is a self-host NetBird's control plane. **NetBird version** `v0.28.9` **NetBird status -dA output:** Not applicable **Do you face any (non-mobile) client issues?** I have issues both on the mobile client and the laptop. Unable to run the command for the same reason as above. **Screenshots** ![Sem título](https://github.com/user-attachments/assets/0198e50a-aae8-4c43-819b-347e765dd3bb) ![363506711-3ba8edcf-b368-4a31-a7aa-8d292b6d38c7](https://github.com/user-attachments/assets/90a1cd05-82fb-4f29-b365-ffd43ba6ec01) ![363506706-149e918a-b354-4318-8847-f976333d772e](https://github.com/user-attachments/assets/979ea5b3-c8cf-4db0-be34-87f762cacd5e) **Additional context** I believe that the Authentik application is sending the User ID but for some reason the Netbird does not receive the User ID presenting the error `accountID: UNKNOWN` . If i try to set a different scope on the Authentik application it does get the data from Authentik which i can see on the Netbird logs. Can someone give me an idea of what i might be missing? Thank you all in advance.
saavagebueno added the waiting-feedbacktriage-needed labels 2026-08-05 01:02:46 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#5355