netbird: Error: Request failed with status code 401. Please refresh the page if the issue continues. invalid jwt

Describe the problem

After upgrading from v0.14.4 to v0.21.3 I am unable to access the dashboard and get this error: image

I suspect this is related to the new IdP changes but I am not sure what.

To Reproduce Steps to reproduce the behavior:

  1. Pull latest https://github.com/netbirdio/netbird.git
  2. Copy infrastructure_files/setup.env.template to infrastructure_files/setup.env (overwrite existing file from old version)
  3. Fill in correct values noting these changes:
    1. Generate a client secret for the netbird-client in Keycloak and NETBIRD_AUTH_CLIENT_SECRET
    2. Create a new client netbird-backend and follow the steps here: https://docs.netbird.io/selfhosted/identity-providers#step-8-create-a-net-bird-backend-client
  4. Re-run ./configure.sh
  5. Run docker compose pull && docker compose down && docker compose up -d

Expected behavior

Things work as they used to

Additional context

I tried setting NETBIRD_MGMT_IDP="none" and the dashboard loads but no clients can connect with this error:

netbird up --management-url https://netbird.XXX:33073 --admin-url https://netbird.XXX:443
Error: login failed: rpc error: code = NotFound desc = no SSO provider returned from management. If you are using hosting Netbird see documentation at https://github.com/netbirdio/netbird/tree/main/management for details

About this issue

Most upvoted comments

Hello @NatureLR, the issue has been fixed in the latest version, you can run docker compose pull followed by docker compose up -d --force-recreate management to upgrade.

The IDP manager is mainly mapping user IDs from netbird management system to emails from your IDP

It needs permissions to update your IDP user’s attributes, like it adds the netbird account ID to a user.