[GH-ISSUE #6189] Unregistered redirect_uri with v0.71.0 #12101

Closed
opened 2026-08-05 01:32:25 -04:00 by saavagebueno · 2 comments
Owner

Originally created by @jnfrati on GitHub (May 18, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/6189

Originally assigned to: @jnfrati on GitHub.

Discussed in https://github.com/netbirdio/netbird/discussions/6154

Originally posted by alexmoras May 15, 2026

Before posting

  • I searched existing discussions and issues, including closed ones, and checked the relevant docs.
  • I believe this is a product bug rather than a configuration or setup question.
  • I can reproduce this issue, or for intermittent issues I've included trigger, frequency, and timing details below.
  • I removed or anonymized sensitive data from logs, screenshots, and configuration.

Affected area

Login / Authentication / IdP

Deployment type

Self-hosted - quickstart script

Operating system or environment

Linux

NetBird version and upgrade status

Management
v0.71.0

Dashboard
v2.38.0

Client
v0.71.0 - Linux

Did this work before?

Yes, this worked before

Regression details

v0.70.5 - worked prior to upgrade to v0.71.0. Fresh install of v0.71.0 also replicates the issue.

Summary

Whenever trying to use device authentication, such as Netbird SSH or signing in on a TV, the NetBird Oauth server returns a Unregistered redirect_uri. due to a malformed redirect URI, missing the host domain name and only containing the oauth path.

Current behavior

v0.71.0 returns the following oauth device callback URL with the malformed redirect_uri which is missing the host domain.

https://domain.tld/oauth2/auth/pocketid-uniqueid?client_id=netbird-cli&client_secret=&redirect_uri=%2Foauth2%2Fdevice%2Fcallback&response_type=code&scope=openid+profile+email+groups&state=WXYZ-ZYXW

Expected behavior

The redirect_uri parameter should include the host domain (previous version did) and when you manually include it after seeing the error, the device gets authorised correctly.

&redirect_uri=https%3A%2F%2Fdomain.tld%2Foauth2%2Fdevice%2Fcallback

Steps to reproduce

Upgrade from 0.70.5 or a fresh install of 0.71.0 (I've tried both, the issue is present whichever way I install it)

Setup PocketID (I haven't tested this issue with other IDPs).

Attempt to use NetBird SSH or sign in to Android TV via the QR code and it'll prompt you for the 8-char code.

This will then redirect you to the malformed callback URL as above.

Environment and topology

Self-hosted install running on Ubuntu Server 26.04 with latest Docker. Configured with quickstart using option 0 for Traefik and Proxy / CrowdSec enabled. PocketID enabled via the UI as IDP option.

Self-hosted details, if available

No response

Logs, status output, or debug evidence

N/A

No response

Impact

Given that I have replicated this on three separate, fresh-install, VPS, I would suggest that multiple people will be facing this issue. I have also tested it on a variety of domains in case my funky gTLD was being parsed weirdly. I've tested this with a legacy install that was updated from 0.70.5, and also fresh installs of 0.71.0.

Additional context

Possibly related to #6149, although the error I am seeing is shown by NetBird, rather than the third-party IDP.
image

Originally created by @jnfrati on GitHub (May 18, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/6189 Originally assigned to: @jnfrati on GitHub. ### Discussed in https://github.com/netbirdio/netbird/discussions/6154 <div type='discussions-op-text'> <sup>Originally posted by **alexmoras** May 15, 2026</sup> ### Before posting - [X] I searched existing discussions and issues, including closed ones, and checked the relevant docs. - [X] I believe this is a product bug rather than a configuration or setup question. - [X] I can reproduce this issue, or for intermittent issues I've included trigger, frequency, and timing details below. - [X] I removed or anonymized sensitive data from logs, screenshots, and configuration. ### Affected area Login / Authentication / IdP ### Deployment type Self-hosted - quickstart script ### Operating system or environment Linux ### NetBird version and upgrade status Management v0.71.0 Dashboard v2.38.0 Client v0.71.0 - Linux ### Did this work before? Yes, this worked before ### Regression details v0.70.5 - worked prior to upgrade to v0.71.0. Fresh install of v0.71.0 also replicates the issue. ### Summary Whenever trying to use device authentication, such as Netbird SSH or signing in on a TV, the NetBird Oauth server returns a `Unregistered redirect_uri.` due to a malformed redirect URI, missing the host domain name and only containing the oauth path. ### Current behavior v0.71.0 returns the following oauth device callback URL with the malformed `redirect_uri` which is missing the host domain. `https://domain.tld/oauth2/auth/pocketid-uniqueid?client_id=netbird-cli&client_secret=&redirect_uri=%2Foauth2%2Fdevice%2Fcallback&response_type=code&scope=openid+profile+email+groups&state=WXYZ-ZYXW` ### Expected behavior The `redirect_uri` parameter should include the host domain (previous version did) and when you manually include it after seeing the error, the device gets authorised correctly. `&redirect_uri=https%3A%2F%2Fdomain.tld%2Foauth2%2Fdevice%2Fcallback` ### Steps to reproduce Upgrade from 0.70.5 or a fresh install of 0.71.0 (I've tried both, the issue is present whichever way I install it) Setup PocketID (I haven't tested this issue with other IDPs). Attempt to use NetBird SSH or sign in to Android TV via the QR code and it'll prompt you for the 8-char code. This will then redirect you to the malformed callback URL as above. ### Environment and topology Self-hosted install running on Ubuntu Server 26.04 with latest Docker. Configured with quickstart using option 0 for Traefik and Proxy / CrowdSec enabled. PocketID enabled via the UI as IDP option. ### Self-hosted details, if available _No response_ ### Logs, status output, or debug evidence ```shell N/A ``` ### Related issues or discussions _No response_ ### Impact Given that I have replicated this on three separate, fresh-install, VPS, I would suggest that multiple people will be facing this issue. I have also tested it on a variety of domains in case my funky gTLD was being parsed weirdly. I've tested this with a legacy install that was updated from 0.70.5, and also fresh installs of 0.71.0. ### Additional context Possibly related to #6149, although the error I am seeing is shown by NetBird, rather than the third-party IDP. <img width="472" height="425" alt="image" src="https://github.com/user-attachments/assets/88cf2cfe-3df9-41d1-9f16-a286c2dda9d2" /> </div>
saavagebueno added the idp label 2026-08-05 01:32:25 -04:00
Author
Owner

@linear-code[bot] commented on GitHub (May 18, 2026):

NET-1185

<!-- gh-comment-id:4475409550 --> @linear-code[bot] commented on GitHub (May 18, 2026): <!-- linear-linkback --> <p><a href="https://linear.app/netbird/issue/NET-1185">NET-1185</a></p>
Author
Owner

@jnfrati commented on GitHub (May 18, 2026):

Fixed by https://github.com/netbirdio/netbird/pull/6191

<!-- gh-comment-id:4477003418 --> @jnfrati commented on GitHub (May 18, 2026): Fixed by https://github.com/netbirdio/netbird/pull/6191
Sign in to join this conversation.
No Label idp
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#12101