Error: Unauthenticated #1011

Closed
opened 2025-11-20 05:21:42 -05:00 by saavagebueno · 3 comments
Owner

Originally created by @Anth-0S on GitHub (Jun 22, 2024).

Describe the problem

Good day everyone,

I have been using Netbird for several months and I have not had any problems. But a few days ago this appeared in the Login interface and it does not allow me to enter the control panel.

Even with that error, the endpoints were working fine but after a server restart they stopped working and having access to the VPN.

Are you using NetBird Cloud?

self-host

NetBird version

v0.26.7

Screenshots

image

Originally created by @Anth-0S on GitHub (Jun 22, 2024). **Describe the problem** Good day everyone, I have been using Netbird for several months and I have not had any problems. But a few days ago this appeared in the Login interface and it does not allow me to enter the control panel. Even with that error, the endpoints were working fine but after a server restart they stopped working and having access to the VPN. **Are you using NetBird Cloud?** self-host **NetBird version** v0.26.7 **Screenshots** ![image](https://github.com/netbirdio/netbird/assets/138267216/df5a0f2d-5063-4eb0-9def-060b03029d80)
saavagebueno added the management-servicedashboardwaiting-feedbackself-hosting labels 2025-11-20 05:21:43 -05:00
Author
Owner

@ymc-dabe commented on GitHub (Jun 26, 2024):

Hi @Anth-0S
I stumbled about the same problem and it is fairly easy to solve. In file management.json within PKCEAuthorizationFlow.ProviderConfig.RedirectURLs you need to add at least one URL that is local to the connecting client, e.g. http://localhost:53000. This should be added before any other public reachable URL. Here is an example:

{
  "PKCEAuthorizationFlow": {
    "ProviderConfig": {
      "RedirectURLs": [
          "http://localhost:53000/",
          "http://localhost:54000/",
          "https://netbird.example.com/auth",
          "https://netbird.example.com/silent-auth"
      ]
    }
  }
}

Notes:

  • You can freely choose the ports to use here, they don't necessarily need to be 53000 and/or 54000.
  • Don't forget to configure your IDP to allow the newly added localhost-RedirectURLs.

Explaination:
The client will open a http server listing on the local system, for finishing the oauth2-dance. For this it will iterate through the list of configured RedirectURLs and will use the first port, that is not in use by the local system (where the client is running on). In this example this would be port 53000, followed by port 54000 (if the 53000 would be in use by something else).

@ymc-dabe commented on GitHub (Jun 26, 2024): Hi @Anth-0S I stumbled about the same problem and it is fairly easy to solve. In file `management.json` within `PKCEAuthorizationFlow.ProviderConfig.RedirectURLs` you need to add at least one URL that is local to the connecting client, e.g. `http://localhost:53000`. This should be added before any other public reachable URL. Here is an example: ``` { "PKCEAuthorizationFlow": { "ProviderConfig": { "RedirectURLs": [ "http://localhost:53000/", "http://localhost:54000/", "https://netbird.example.com/auth", "https://netbird.example.com/silent-auth" ] } } } ``` Notes: - You can freely choose the ports to use here, they don't necessarily need to be `53000` and/or `54000`. - Don't forget to configure your IDP to allow the newly added `localhost`-RedirectURLs. Explaination: The client will open a http server listing on the local system, for finishing the oauth2-dance. For this it will iterate through the list of configured `RedirectURLs` and will use the first port, that is not in use by the local system (where the client is running on). In this example this would be port `53000`, followed by port `54000` (if the `53000` would be in use by something else).
Author
Owner

@nazarewk commented on GitHub (Apr 23, 2025):

Is this still an issue with the latest NetBird version?
Does it need a documentation update?

@nazarewk commented on GitHub (Apr 23, 2025): Is this still an issue with the latest NetBird version? Does it need a documentation update?
Author
Owner

@mlsmaycon commented on GitHub (Jun 1, 2025):

closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.

@mlsmaycon commented on GitHub (Jun 1, 2025): closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1011