Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support transformations/policies based on values from OIDCIdentityProvider additionalClaimMappings #1449

Open
jeffmace opened this issue Mar 8, 2023 · 0 comments
Labels
enhancement New feature or request priority/undecided Not yet prioritized

Comments

@jeffmace
Copy link

jeffmace commented Mar 8, 2023

It would be nice to support transformations like are proposed in #1407 on values from the additionalClaimMappings in OIDCIdentityProvider.

Here are two examples based on an additional claim named org_id

  • The user can configure a policy to limit which org_id values are allowed to authenticate through the OIDCIdentityProvider
    - type: policy/v1
      expression: 'org_id in strListConst.orgIDList'
      message: "Only users in certain orgs are allowed to authenticate"
    
  • The user can configure a transformation to append the org_id to the user's list of groups
    - type: groups/v1
      expression: 'groups + ["org" + org_id]'
    

Based on some discussion, the values for additionalClaimMappings may not be accessible outside the OIDCIdentityProvider scope. If so, then the transformations must be defined for each OIDCIdentityProvider resource so they result in the expected username/groups values.

@pinniped-ci-bot pinniped-ci-bot added enhancement New feature or request priority/undecided Not yet prioritized labels Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority/undecided Not yet prioritized
Projects
None yet
Development

No branches or pull requests

2 participants