Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@thenodon
Copy link

Overview

This PR add functionality to the oidc connector to transform groups claims in the following way:

  • apply a regex expression to each group that matches, and replace it with a replacement string
  • enable to set the group name to lower or upper case, default is no change

What this PR does / why we need it

This is controlled by two new optional fields in the oidc connector config claimModifications.modifyGroupNames using
the following structure:

      claimModifications:
        modifyGroupNames:
          rewriteRegex: "\\."  # regex to match
          rewriteReplacement: "_"  # replacement string
          caseConversion: "lower"

Background to this PR is that the group names provided by the OIDC is used in the client application for RBAC and in my
case the application does not allow roles with dots in the name or upper case letters.

…r using additional fields in claimModifications.modifyGroupNames that enable regex replacement and case conversion.

Signed-off-by: andersh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant