keycloak-ui icon indicating copy to clipboard operation
keycloak-ui copied to clipboard

Triming values in keycloak console

Open marek-surek opened this issue 3 years ago • 2 comments

Description

  1. If you are creating new client and e.g. " xxx ", you are correctly removing ending and trailing whitespaces
  2. 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.
  3. 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 avatar Sep 29 '22 12:09 marek-surek

@marek-surek Thanks for reporting. I'm going to move this issue to the keycloak-ui repo.

ssilvert avatar Sep 29 '22 19:09 ssilvert

Should we not be solving this at the API level? To keep things in-line with the 'dumb front-end' philosophy?

jonkoops avatar Sep 29 '22 20:09 jonkoops