keycloak-ui
keycloak-ui copied to clipboard
Triming values in keycloak console
Description
- If you are creating new client and e.g. " xxx ", you are correctly removing ending and trailing whitespaces
- If you are creating role (Clients -> someClient -> Roles ) keycloak is not trimminng role name so "xxx " role name is accepted but it is always impossible to see it.
- The same behaviour with names as in 2 is also in : a) Creating resource (Clients -> someClient -> Authorization -> Resources) b) Creating scopes (Clients -> someClient -> Authorization -> Scopes) c) Creating policies (Clients -> someClient -> Authorization -> Policies) d) Creating permissions (Clients -> someClient -> Authorization -> Permissions)
Discussion
No response
Motivation
If you are copy pasting values, sometimes you miss that there are whitespaces. Then in real usage it application it causes problems as you are seeing it in listings without whitespaces but when you are in detail and you are copying it, then you see there are also some whitespaces.
Details
No response
@marek-surek Thanks for reporting. I'm going to move this issue to the keycloak-ui repo.
Should we not be solving this at the API level? To keep things in-line with the 'dumb front-end' philosophy?