Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-1030

[GHI#25827] admin ui uses hyphen instead of dot as realm attribute separator

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [X] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

      Area

      admin/ui

      Describe the bug

      For "actionTokenGeneratedByUserLifespan", a hyphen is used in the admin console instead of a dot (.)

      The backend expects a dot:
      https://github.com/keycloak/keycloak/blob/23.0.3/model/jpa/src/main/java/org/keycloak/models/jpa/RealmAdapter.java#L592
      https://github.com/keycloak/keycloak/blob/23.0.3/model/jpa/src/main/java/org/keycloak/models/jpa/RealmAdapter.java#L631

      but the admin ui uses a hyphen:
      https://github.com/keycloak/keycloak/blob/23.0.3/js/apps/admin-ui/src/realm-settings/TokensTab.tsx#L476
      https://github.com/keycloak/keycloak/blob/23.0.3/js/apps/admin-ui/src/realm-settings/TokensTab.tsx#L476
      https://github.com/keycloak/keycloak/blob/23.0.3/js/apps/admin-ui/src/realm-settings/TokensTab.tsx#L516
      https://github.com/keycloak/keycloak/blob/23.0.3/js/apps/admin-ui/src/realm-settings/TokensTab.tsx#L536

      Version

      23.0.3

      Expected behavior

      front end uses dot as a separator

      Actual behavior

      front end uses hyphen as a separator

      How to Reproduce?

      set a user action token lifespan override and test it

      note: I did not test this, just noticed this while working on something else related to realm attributes

      Anything else?

      No response

              Unassigned Unassigned
              pvlha Pavel Vlha
              Keycloak UI
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: