[GH-ISSUE #2384] FreeBSD: authenticate by default with DeviceCodeFlow instead of PKCE #5068

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

Originally created by @skillcoder on GitHub (Aug 4, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2384

Is your feature request related to a problem? Please describe.
I'm always frustrated when I need to add a new FreeBSD peer.
Currently netbird login command by default use PKCE to authenticate FreeBSD peer.
For PKCE you must copy link to your local machine and after use curl on remote host to authenticate FreeBSD peer.
The current auth process described in #1505 and it not very convenient.

Describe the solution you'd like
Instead of using PKCE to authenticate FreeBSD peer, by default netbird client on FreeBSD should offer the device auth flow for SSO.

Describe alternatives you've considered
As alternative you can use NB_SETUP_KEY env var or specify a setup key in rc.conf after we support it in FreeBSD netbird port.

Additional context
For linux we have these checks:
9a6814deff/client/internal/auth/oauth.go (L68)
69048bfd34/client/cmd/login.go (L221)

From my experience almost nobody use FreeBSD as a Desktop.
So for now I suppose we don't need to support it, better to wait for such feature request and implement support in separate PR.

Originally created by @skillcoder on GitHub (Aug 4, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2384 **Is your feature request related to a problem? Please describe.** I'm always frustrated when I need to add a new FreeBSD peer. Currently `netbird login` command by default use PKCE to authenticate FreeBSD peer. For PKCE you must copy link to your local machine and after use curl on remote host to authenticate FreeBSD peer. The current auth process described in [#1505](https://github.com/netbirdio/netbird/issues/1505#issuecomment-2254208989) and it not very convenient. **Describe the solution you'd like** Instead of using PKCE to authenticate FreeBSD peer, by default netbird client on FreeBSD should offer the device auth flow for SSO. **Describe alternatives you've considered** As alternative you can use NB_SETUP_KEY env var or specify a setup key in `rc.conf` after we support it in FreeBSD netbird port. **Additional context** For linux we have these checks: https://github.com/netbirdio/netbird/blob/9a6814deff52b989e348c5a085156abe5b5c5769/client/internal/auth/oauth.go#L68 https://github.com/netbirdio/netbird/blob/69048bfd349d82805a9463dc86cd5ea7adefa363/client/cmd/login.go#L221 From my experience almost nobody use FreeBSD as a Desktop. So for now I suppose we don't need to support it, better to wait for such feature request and implement support in separate PR.
saavagebueno added the feature-requestfreebsd labels 2026-08-05 01:01:10 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#5068