Add peers using SSO goes wrong #1645

Open
opened 2025-11-20 06:04:03 -05:00 by saavagebueno · 4 comments
Owner

Originally created by @linx01 on GitHub (Feb 23, 2025).

Setup of Authentik as SSO went well, I can login with SSO and see web management console as single user and I am able to add properly functioning peers with a setup key. But using SSO to add peers does not work correctly.

And I also configure the brand 's option "device-code-flow" with "default-device-code-flow".
Image

When I add peers using SSO, click "connect" bottom on netbird client, browsers redirects to authentik and successfully back to netbird self-hosted admin page http://address/peers, everything goes well, but the netbird client goes errors, peer isn't added successfully
Image
And check /var/log/netbird/client.log, it shows peers auth method not provided

Image

When I add peers using command line "netbird up --setup-key xxx", it goes well

Originally created by @linx01 on GitHub (Feb 23, 2025). Setup of Authentik as SSO went well, I can login with SSO and see web management console as single user and I am able to add properly functioning peers with a setup key. But using SSO to add peers does not work correctly. And I also configure the brand 's option "device-code-flow" with "default-device-code-flow". ![Image](https://github.com/user-attachments/assets/3d5426e3-ce45-4ca5-bc18-8d7f8c5e0355) When I add peers using SSO, click "connect" bottom on netbird client, browsers redirects to authentik and successfully back to netbird self-hosted admin page http://address/peers, everything goes well, but the netbird client goes errors, peer isn't added successfully ![Image](https://github.com/user-attachments/assets/0820f41e-0786-4ad5-a407-3489cead7950) And check /var/log/netbird/client.log, it shows peers auth method not provided ![Image](https://github.com/user-attachments/assets/75b550e2-a121-4e2d-ab4a-3b8b1b717045) When I add peers using command line "netbird up --setup-key xxx", it goes well
saavagebueno added the triage-needed label 2025-11-20 06:04:03 -05:00
Author
Owner

@GeorgeDaGreatt commented on GitHub (Feb 23, 2025):

Are you using a reverse proxy, and if so, what proxy do you have? (I had the same issue)

@GeorgeDaGreatt commented on GitHub (Feb 23, 2025): Are you using a reverse proxy, and if so, what proxy do you have? (I had the same issue)
Author
Owner

@linx01 commented on GitHub (Feb 23, 2025):

Are you using a reverse proxy, and if so, what proxy do you have? (I had the same issue)

At the begining, I used nginx as the reverse proxy.
Yesterday I replaced it with traefik.

@linx01 commented on GitHub (Feb 23, 2025): > Are you using a reverse proxy, and if so, what proxy do you have? (I had the same issue) At the begining, I used nginx as the reverse proxy. Yesterday I replaced it with traefik.
Author
Owner

@GeorgeDaGreatt commented on GitHub (Feb 23, 2025):

You can have a look at my issue on this, it may provide more information on how to troubleshoot:

Issue 3110

@GeorgeDaGreatt commented on GitHub (Feb 23, 2025): You can have a look at my issue on this, it may provide more information on how to troubleshoot: [Issue 3110](https://github.com/netbirdio/netbird/issues/3110)
Author
Owner

@linx01 commented on GitHub (Feb 23, 2025):

您可以查看我对此的问题,它可能会提供有关如何进行故障排除的更多信息:

问题 3110

thank you, I had seen this issue you commited before.

@linx01 commented on GitHub (Feb 23, 2025): > 您可以查看我对此的问题,它可能会提供有关如何进行故障排除的更多信息: > > [问题 3110](https://github.com/netbirdio/netbird/issues/3110) thank you, I had seen this issue you commited before.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1645