🚀 Feature: remove restrictions on the group's name #416

Closed
opened 2025-10-08 00:07:36 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @VS-X on GitHub.

Feature description

Right now group's Name can only contain lowercase letters, numbers, and underscores. The current validation in pocket-id makes it impossible to create a group with dashes - for example.

I looked through the OIDC specification and couldn't find any restrictions on the group claim values. Other OAuth2 providers (Keycloak, Azure, Okta, etc.) allow many more characters, even uppercase letters and spaces in some cases. I wonder if it would be possible to remove the restriction or at least allow more characters? Or is there a technical reason, which I may have missed, why the restriction is in place?

Pitch

A service could expect a hardcoded group name that includes other characters like a dash - (e.g. service-admin, service-editor). Not being able to create such groups may make it impossible to use such service.

Originally created by @VS-X on GitHub. ### Feature description Right now group's Name can only contain lowercase letters, numbers, and underscores. The current validation in pocket-id makes it impossible to create a group with dashes `-` for example. I looked through the [OIDC specification](https://openid.net/specs/openid-connect-core-1_0.html) and couldn't find any restrictions on the group claim values. Other OAuth2 providers (Keycloak, Azure, Okta, etc.) allow many more characters, even uppercase letters and spaces in some cases. I wonder if it would be possible to remove the restriction or at least allow more characters? Or is there a technical reason, which I may have missed, why the restriction is in place? ### Pitch [A service](https://github.com/Zibbp/ganymede/wiki/SSO---OpenID-Connect#roles--groups) could expect a hardcoded group name that includes other characters like a dash `-` (e.g. `service-admin`, `service-editor`). Not being able to create such groups may make it impossible to use such service.
OVERLORD added the feature label 2025-10-08 00:07:36 +03:00
Author
Owner

@stonith404 commented on GitHub:

This should be fixed in v0.24.1. I thought it would make sense to restrict it to keep consistency in the names but I didn't think about hardcoded group names.

@stonith404 commented on GitHub: This should be fixed in `v0.24.1`. I thought it would make sense to restrict it to keep consistency in the names but I didn't think about hardcoded group names.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id-pocket-id-1#416