[GH-ISSUE #750] No error-information when auth succeeded in dashboard, but failed in backend #1287

Open
opened 2026-08-05 00:41:55 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @Ruakij on GitHub (Mar 21, 2023).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/750

Describe the problem
When auth was setup in a way that allows the dashboard to accept it, but the backend does not, no useful error-information is logged.
(Why auth fails is still beyond me, unfortunately the auth-docs for other auth-providers is still sparse)

The dashboard is easily satisfied as it assumes auth was perfectly fine as soon as it comes back with a token (of any kind!).

To Reproduce
Steps to reproduce the behavior:

  1. Setup application in IdP (i chose Zitadel)

  2. Configuration:
    image
    image
    Also mind the Auth Token Type which is, by-default, "Bearer" which the Dashboard doesnt like: TypeError: e.split(...)[1] is undefined (add docs about requiring JWT!)
    image
    Also add docs about the redirect-uri being like this, some IdPs require this and only allow auth, when its set correctly.

  3. Open netbird, login with IdP

  4. See error
    image

Management logs:

netbird-management-1  | 2023-03-21T10:32:17Z ERRO management/server/telemetry/http_api_metrics.go:150: HTTP response 1083634288: GET /api/users status 500
netbird-management-1  | 2023-03-21T10:32:18Z ERRO management/server/telemetry/http_api_metrics.go:150: HTTP response 2813638850: GET /api/peers status 500
netbird-management-1  | 2023-03-21T10:32:18Z ERRO management/server/telemetry/http_api_metrics.go:150: HTTP response 1697663107: GET /api/groups status 500
netbird-management-1  | 2023-03-21T10:32:18Z ERRO management/server/telemetry/http_api_metrics.go:150: HTTP response 3157473669: GET /api/routes status 500

Expected behavior
A proper error-message, both in the dashboard and the management-logs about what exactly went wrong.


I havent tried other IdPs yet, but switchged to Auth0 to test if thats the problem, the errors went away.
Maybe i did something wrong with my IdP setup (which is kinda badly documented), but i'd expect helpful error-logs.

I'll try the setup with Authentik as IdP next.
Once i find out what works and how i'll write some more generic docs for IdPs.

Originally created by @Ruakij on GitHub (Mar 21, 2023). Original GitHub issue: https://github.com/netbirdio/netbird/issues/750 **Describe the problem** When auth was setup in a way that allows the dashboard to accept it, but the backend does not, no useful error-information is logged. (Why auth fails is still beyond me, unfortunately the auth-docs for other auth-providers is still sparse) The dashboard is easily satisfied as it assumes auth was perfectly fine as soon as it comes back with a token (of any kind!). **To Reproduce** Steps to reproduce the behavior: 1. Setup application in IdP (i chose Zitadel) 2. Configuration: ![image](https://user-images.githubusercontent.com/54639830/226579153-01ad2fb0-325a-4a0c-b63f-9cc19a760f0e.png) ![image](https://user-images.githubusercontent.com/54639830/226579221-379e446f-467b-4e32-9438-48a54c50ea6e.png) Also mind the *Auth Token Type* which is, by-default, "Bearer" which the Dashboard doesnt like: `TypeError: e.split(...)[1] is undefined` (add docs about requiring JWT!) ![image](https://user-images.githubusercontent.com/54639830/226580281-fdef6b02-98fa-4a40-8a51-9756154245b9.png) Also add docs about the redirect-uri being like this, some IdPs require this and only allow auth, when its set correctly. 4. Open netbird, login with IdP 5. See error ![image](https://user-images.githubusercontent.com/54639830/226580748-90b19334-2776-45de-80ed-c3eaf861799f.png) Management logs: ``` netbird-management-1 | 2023-03-21T10:32:17Z ERRO management/server/telemetry/http_api_metrics.go:150: HTTP response 1083634288: GET /api/users status 500 netbird-management-1 | 2023-03-21T10:32:18Z ERRO management/server/telemetry/http_api_metrics.go:150: HTTP response 2813638850: GET /api/peers status 500 netbird-management-1 | 2023-03-21T10:32:18Z ERRO management/server/telemetry/http_api_metrics.go:150: HTTP response 1697663107: GET /api/groups status 500 netbird-management-1 | 2023-03-21T10:32:18Z ERRO management/server/telemetry/http_api_metrics.go:150: HTTP response 3157473669: GET /api/routes status 500 ``` **Expected behavior** A proper error-message, both in the dashboard and the management-logs about what exactly went wrong. --- I havent tried other IdPs yet, but switchged to Auth0 to test if thats the problem, the errors went away. Maybe i did something wrong with my IdP setup (which is kinda badly documented), but i'd expect helpful error-logs. I'll try the setup with Authentik as IdP next. Once i find out what works and how i'll write some more generic docs for IdPs.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#1287