Uploaded image for project: 'OpenId Connect'
  1. OpenId Connect
  2. OIDC-147

Provide Groups to XWiki via OpenId Connect Provider Keycloak

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Authenticator
    • None
    • Unknown

    Description

      See https://forum.xwiki.org/t/issue-with-mapping-roles-to-groups-in-xwiki-using-openid-authentication-with-keycloak/12975

      I am currently facing an issue while integrating XWiki with Keycloak using the OpenID Connect provider. The integration for actual user login is functioning correctly; however, I'm encountering a problem when attempting to utilize Keycloak groups to assign corresponding groups in XWiki.

      Here's the relevant configuration I have set up:

      ... oidc.groups.claim=groups
      oidc.groups.mapping=Reader=bmnwikireader
      oidc.groups.mapping=Writer=bmnwikiwriter ...
      

      I have already created the "Reader" and "Writer" groups within XWiki.

      When I receive the token from the client created for the XWiki instance, the token's data includes the following:

        "scope": "openid profile groups email",
         "groups": [
          "bmnwikireader",
      
        ],
      

      Despite following this configuration and providing the necessary group information, the mapping of groups from Keycloak to XWiki does not seem to work as expected. Users are still being added to the default "XWikiAllGroup" instead of being assigned to their respective groups.

      I have spent a considerable amount of time adjusting the "groups" value and trying various configurations, but so far, I have not achieved the desired outcome.

      I would greatly appreciate your assistance in resolving this issue. If there are any additional steps or adjustments that I need to make to ensure the accurate mapping of groups from Keycloak to XWiki, please kindly provide guidance. Thank you for your attention to this matter. I look forward to your guidance and assistance in resolving this issue.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lokzzzor Alex
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: