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

The organization claim does not appear if the Organization Membership Mapper is added through a custom client scope [GHI#36514]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • RHBK-2757 - Release Red Hat Build of KeyCloak

      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

      organizations

      Describe the bug

      The organization claim does not appear if the "Organization Membership Mapper" is added through a custom client scope.

      It only appears if the client scope “organization” is added separately in addition to the custom one.

      Version

      26.1.0

      Regression

      [ ] The issue is a regression

      Expected behavior

      It should be possible to generate the claim by creating a custom client scope with a mapper of the type “Organization Membership Mapper” without being forced to use the client scope “organization” that is already included with Keycloak.

      Actual behavior

      The claim does not appear if the client scope “organization” included in Keycloak is not added.

      How to Reproduce?

      1. Create a client scope with a single mapper of type “Organization Membership Mapper” with default values.
      2. Create a client and add the previous client scope as “Default”.
      3. In client scopes go to “Evaluate” and check how the claim does not appear.
      4. Add to the client the client scope “organization” (the “official” one of Keycloak).
      5. Repeat step 3 and in this case check if the 2 claims appear (the one of our client scope and the one of “organization”).

      Anything else?

      No response

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

                Created:
                Updated:
                Resolved: