Skip to content

Conversation

@austingebauer
Copy link
Contributor

@austingebauer austingebauer commented May 12, 2022

Overview

This PR allows users to define the user_claim value as a JSON pointer. It introduces a new boolean parameter on the role, UserClaimJSONPointer, which allows users to opt in to the behavior.

The decision to make this configurable was made to preserve existing behavior. For example, an existing role could have a user_claim value that is a valid JSON pointer to a different claim. This would result in an unexpected alias change. We want to prevent that from happening.

Closes #180

Testing

I've added tests to this PR. I've also done some manual testing.

@austingebauer austingebauer requested review from a team and kalafut May 12, 2022 17:20
Copy link

@swenson swenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

[req] Allow json pointers when specifying a user claim

3 participants