mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:53:00 +03:00
🚀 Feature: remove restrictions on the group's name #416
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.@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.