[GH-ISSUE #3934] Selhosted - Upgrade to 0.46.0 breaks authentication with Authentik 2025.6.0 #8131

Closed
opened 2026-08-05 01:16:07 -04:00 by saavagebueno · 9 comments
Owner

Originally created by @boardlord1 on GitHub (Jun 5, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/3934

Describe the problem

Ever since updated to self-hosted 0.46, I cannot log in to my dashboard.

To Reproduce

Steps to reproduce the behavior:

Update to 0.46, try to log in

Screenshot of what happens:
Image

Expected behavior

Working access to the dashboard, like with Netbird 0.45.3 - which worked perferctly with Authentik 2025.6.0. All my other OpenID services work, like Nextcloud, FreshRSS, Portainer.

Are you using NetBird Cloud?
No, I self-host.

Please specify whether you use NetBird Cloud or self-host NetBird's control plane.

NetBird version

Self-hosted 0.46.0

Is any other VPN software installed?
No

Originally created by @boardlord1 on GitHub (Jun 5, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/3934 **Describe the problem** Ever since updated to self-hosted 0.46, I cannot log in to my dashboard. **To Reproduce** Steps to reproduce the behavior: Update to 0.46, try to log in Screenshot of what happens: ![Image](https://github.com/user-attachments/assets/9e275c44-0abe-4359-8edb-a73eb97f984c) **Expected behavior** Working access to the dashboard, like with Netbird 0.45.3 - which worked perferctly with Authentik 2025.6.0. All my other OpenID services work, like Nextcloud, FreshRSS, Portainer. **Are you using NetBird Cloud?** No, I self-host. Please specify whether you use NetBird Cloud or self-host NetBird's control plane. **NetBird version** `Self-hosted 0.46.0` **Is any other VPN software installed?** No
saavagebueno added the triage-needed label 2026-08-05 01:16:07 -04:00
Author
Owner

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

@boardlord1 Can you share more about your upgrade steps and confirm that the issue is only on dashboard login?

<!-- gh-comment-id:2945154896 --> @mlsmaycon commented on GitHub (Jun 5, 2025): @boardlord1 Can you share more about your upgrade steps and confirm that the issue is only on dashboard login?
Author
Owner

@boardlord1 commented on GitHub (Jun 5, 2025):

Like many times before, I stopped my Netbird stack in Portainer, then in the editor I clicked "Update the stack" and set "Re-pull image and redeploy".

The VPN service itself works, as my clients can connect to the server, and I can access remote network resources.

<!-- gh-comment-id:2945163227 --> @boardlord1 commented on GitHub (Jun 5, 2025): Like many times before, I stopped my Netbird stack in Portainer, then in the editor I clicked "Update the stack" and set "Re-pull image and redeploy". The VPN service itself works, as my clients can connect to the server, and I can access remote network resources.
Author
Owner

@Popo8701 commented on GitHub (Jun 5, 2025):

Same issue here, I get a bad request when trying to get a token from Authentik:
Image

<!-- gh-comment-id:2945166972 --> @Popo8701 commented on GitHub (Jun 5, 2025): Same issue here, I get a bad request when trying to get a token from Authentik: ![Image](https://github.com/user-attachments/assets/90ad952e-7c80-4ea3-a729-677872f40d4e)
Author
Owner

@MrBE4R commented on GitHub (Jun 5, 2025):

Hi,

I get the same error.

Upgrade process was :

docker compose pull
docker compose up -d --force-recreate

In the dev console of the web browser I get :

XHR POST https://authentik.domain/application/o/token/ [HTTP/2 400  74ms]

code=undefined&grant_type=authorization_code&client_id=THE_ID&redirect_uri=https%3A%2F%2Fnetbird.domain%2F%23callback&code_verifier=THE_CODE

{"error": "invalid_grant", "error_description": "The provided authorization grant or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client"}
<!-- gh-comment-id:2945173484 --> @MrBE4R commented on GitHub (Jun 5, 2025): Hi, I get the same error. Upgrade process was : ``` docker compose pull docker compose up -d --force-recreate ``` In the dev console of the web browser I get : ``` XHR POST https://authentik.domain/application/o/token/ [HTTP/2 400 74ms] code=undefined&grant_type=authorization_code&client_id=THE_ID&redirect_uri=https%3A%2F%2Fnetbird.domain%2F%23callback&code_verifier=THE_CODE {"error": "invalid_grant", "error_description": "The provided authorization grant or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client"} ```
Author
Owner

@Nivek938 commented on GitHub (Jun 5, 2025):

Same issue here after upgrading, VPN works, just can't log in to Dashboard with Authentik.
Authentik version: 2025.4.1
Netbird Version 0.46.0
Image

<!-- gh-comment-id:2945174743 --> @Nivek938 commented on GitHub (Jun 5, 2025): Same issue here after upgrading, VPN works, just can't log in to Dashboard with Authentik. Authentik version: 2025.4.1 Netbird Version 0.46.0 ![Image](https://github.com/user-attachments/assets/7952c9cf-5130-41c0-98e3-74466e33a999)
Author
Owner

@Popo8701 commented on GitHub (Jun 5, 2025):

Reverting dashboard to v2.12.0 fixes the issue

<!-- gh-comment-id:2945188569 --> @Popo8701 commented on GitHub (Jun 5, 2025): Reverting dashboard to v2.12.0 fixes the issue
Author
Owner

@heisbrot commented on GitHub (Jun 5, 2025):

Could you try with dashboard v2.13.1 and see if this fixes it?

<!-- gh-comment-id:2945412940 --> @heisbrot commented on GitHub (Jun 5, 2025): Could you try with dashboard [v2.13.1](https://github.com/netbirdio/dashboard/releases/tag/v2.13.1) and see if this fixes it?
Author
Owner

@Popo8701 commented on GitHub (Jun 5, 2025):

It does fix it!

<!-- gh-comment-id:2945420796 --> @Popo8701 commented on GitHub (Jun 5, 2025): It does fix it!
Author
Owner

@boardlord1 commented on GitHub (Jun 5, 2025):

Indeed it works, thanks for the quick fix!

<!-- gh-comment-id:2945433665 --> @boardlord1 commented on GitHub (Jun 5, 2025): Indeed it works, thanks for the quick fix!
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#8131