JWT Claim feature not working with groups containing capitalized letters #1295

Open
opened 2025-11-20 05:27:41 -05:00 by saavagebueno · 4 comments
Owner

Originally created by @alexcupertme on GitHub (Sep 28, 2024).

Describe the problem

Netbird not presenting strict conditions how can group be named, so when you try to fetch groups from JWT token using JWT Claim functionality, it doesn't parse groups named like "Developer" et cetera...

To Reproduce

Steps to reproduce the behavior:

Prerequisites:
Zitadel as IdP and Netbird, v.0.29.4

  1. Add Authorization to the user with role key "EXAMPLE"
  2. Try to connect to the Netbird via Desktop application and authorize
  3. Group didnt assigned

If we try "example" as role key, it works perfectly

Expected behavior

At least this behavior should be noted in the documentation

Originally created by @alexcupertme on GitHub (Sep 28, 2024). **Describe the problem** Netbird not presenting strict conditions how can group be named, so when you try to fetch groups from JWT token using JWT Claim functionality, it doesn't parse groups named like "Developer" et cetera... **To Reproduce** Steps to reproduce the behavior: Prerequisites: Zitadel as IdP and Netbird, v.0.29.4 1. Add Authorization to the user with role key "EXAMPLE" 2. Try to connect to the Netbird via Desktop application and authorize 3. Group didnt assigned If we try "example" as role key, it works perfectly **Expected behavior** At least this behavior should be noted in the documentation
saavagebueno added the triage-needed label 2025-11-20 05:27:41 -05:00
Author
Owner

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

Hello @alexcupertme,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

@nazarewk commented on GitHub (Apr 28, 2025): Hello @alexcupertme, We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). Could you please confirm if the issue is still there? We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. Thanks for your contribution to improving the project!
Author
Owner

@mrll commented on GitHub (May 14, 2025):

@nazarewk I can confirm this issue still exists in the current version.

As soon as there is one capital letter in the group name, it is ignored by netbird.

@mrll commented on GitHub (May 14, 2025): @nazarewk I can confirm this issue still exists in the current version. As soon as there is one capital letter in the group name, it is ignored by netbird.
Author
Owner

@nazarewk commented on GitHub (May 14, 2025):

@mrll are we talking about Cloud or self-hosted?
As far as I know we were parsing Groups off JWT tokent for only a short time and abandoned the idea on behalf of the "IdP Sync" feature in the Cloud offering.

Unless I'm missing something I don't think this is expected to work at all.

@nazarewk commented on GitHub (May 14, 2025): @mrll are we talking about Cloud or self-hosted? As far as I know we were parsing Groups off JWT tokent for only a short time and abandoned the idea on behalf of the "IdP Sync" feature in the Cloud offering. Unless I'm missing something I don't think this is expected to work at all.
Author
Owner

@Coler-e commented on GitHub (Sep 16, 2025):

Some input on this, I can attest the current version works with groups having capitalized letters :

Image

also @nazarewk will the IdP Sync functionnality trickle down to the open-source version at one point or is JWT Token parsing here to stay?

@Coler-e commented on GitHub (Sep 16, 2025): Some input on this, I can attest the current version works with groups having capitalized letters : <img width="1425" height="87" alt="Image" src="https://github.com/user-attachments/assets/d7950fbf-0ed1-418e-87cf-c77ac08cea0f" /> also @nazarewk will the IdP Sync functionnality trickle down to the open-source version at one point or is JWT Token parsing here to stay?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1295