You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a JWT has multiple claims with the same name (type) then most applications will create that claim as an array. One example is Auth0 which generates tokens with a "permissions" claim that is an array of permissions that the user has. Currently there does not appear to be a way to generate similar JWTs using user-jwts because it prohibits creating multiple claims with the same name.
dotnet user-jwts create --claim permissions=read --claim permissions=write
An item with the same key has already been added. Key: permissions
Is there an existing issue for this?
Describe the bug
When a JWT has multiple claims with the same name (type) then most applications will create that claim as an array. One example is Auth0 which generates tokens with a "permissions" claim that is an array of permissions that the user has. Currently there does not appear to be a way to generate similar JWTs using user-jwts because it prohibits creating multiple claims with the same name.
Expected Behavior
No response
Steps To Reproduce
dotnet user-jwts create --claim permissions=read --claim permissions=write
Exceptions (if any)
An item with the same key has already been added. Key: permissions
.NET Version
9.0.101
Anything else?
No response
The text was updated successfully, but these errors were encountered: