Skip to content

Fix array handling for claims with multiple values #23

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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

kirill-abblix
Copy link
Member

Summary of Changes

  • The MergeClaims method has been designed to correctly handle multiple claims of the same type by aggregating them into JSON arrays. This ensures that when a JWT contains multiple claims with the same type, they are represented as arrays in the payload, adhering to JWT standards.

  • The ToJsonNode method has been extended to support a broader range of ClaimValueTypes. This enhancement allows for accurate parsing and serialization of various claim value types into appropriate JsonNode representations.

Benefits

  • By correctly representing multiple claims of the same type as arrays, the JWTs generated are more compliant with JWT specifications.

  • These changes enhance compatibility with clients and services that expect claims to be structured in this manner, reducing potential integration issues.

  • The extended support for various ClaimValueTypes ensures that a wider range of claim data can be accurately processed and included in JWTs.

@kirill-abblix kirill-abblix changed the title Fix consistent array handling for claims with multiple values Fix array handling for claims with multiple values Apr 24, 2025
Copy link

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