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

replace colon in claim headers to prevent issues with namespaced claims #184

Closed
wants to merge 1 commit into from

Conversation

betagan
Copy link

@betagan betagan commented Dec 10, 2019

Workaround/Fix for #183. Please see #183 for a more detailed description of the issue.

This PR rewrites any colon in a claim key to a dash. This resolves the issue that the remainder after the colon would be interpreted as part of the value instead of the key.

given a claim custom:roles with value administrator
expected result: a header X-Vouch-IdP-Claims-custom:roles with value administrator
actual result: a header X-Vouch-IdP-Claims-custom with value roles: administrator
patched result: a header X-Vouch-IdP-Claims-custom-roles with value administrator

This PR is mostly provided for other users until a proper fix has been made, as anyone using custom claims with AWS Cognito (and possibly other IdPs) can easily run into the issue.

@bnfinet
Copy link
Member

bnfinet commented Apr 22, 2020

closing in favor of v0.10.0, specifically 62a3a36

see #183

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.

2 participants