(Translated by https://www.hiragana.jp/)
Adds ability to use JSON pointer for the user claim by austingebauer · Pull Request #204 · hashicorp/vault-plugin-auth-jwt · GitHub
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

Adds ability to use JSON pointer for the user claim #204

Merged
merged 1 commit into from
May 16, 2022

Conversation

austingebauer
Copy link
Member

@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 kalafut and a team 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