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

[Bug] JwtRegisteredClaimNames is incomplete #1911

Closed
1 of 14 tasks
dojoincom opened this issue Jul 16, 2022 · 2 comments
Closed
1 of 14 tasks

[Bug] JwtRegisteredClaimNames is incomplete #1911

dojoincom opened this issue Jul 16, 2022 · 2 comments
Labels
Customer reported Indicates issue was opened by customer Enhancement The issue is a new feature

Comments

@dojoincom
Copy link

Which version of Microsoft.IdentityModel are you using?
6.21.0.0

Where is the issue?

  • M.IM.JsonWebTokens
  • M.IM.KeyVaultExtensions
  • M.IM.Logging
  • M.IM.ManagedKeyVaultSecurityKey
  • M.IM.Protocols
  • M.IM.Protocols.OpenIdConnect
  • M.IM.Protocols.SignedHttpRequest
  • M.IM.Protocols.WsFederation
  • M.IM.TestExtensions
  • M.IM.Tokens
  • M.IM.Tokens.Saml
  • M.IM.Validators
  • M.IM.Xml
  • S.IM.Tokens.Jwt

Is this a new or an existing app?
c. This is a new app or an experiment.

Expected behaviour
Based on this link from IANA, there are more than eighty JWT claim names, but the System.IdentityModel.Tokens.Jwt.JwtRegisteredClaimNames has twenty seven claim names. I needed to add user's roles to the token which in JWT is named "roles", but it is not available in the JwtRegisteredClaimNames struct.

Actual behaviour
System.IdentityModel.Tokens.Jwt.JwtRegisteredClaimNames should have more JWT claim names.

Additional context / logs / screenshots / links to code
https://www.iana.org/assignments/jwt/jwt.xhtml
https://www.rfc-editor.org/rfc/rfc7643.html#section-4.1.2

@brentschmaltz brentschmaltz added Enhancement The issue is a new feature Customer reported Indicates issue was opened by customer labels Jul 26, 2022
@brentschmaltz
Copy link
Member

@dorinung yes, there are additional claim names.
Not sure when we will add them all.

@brentschmaltz
Copy link
Member

@dorinung closing as we have a duplicate #1598

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer reported Indicates issue was opened by customer Enhancement The issue is a new feature
Projects
None yet
Development

No branches or pull requests

1 participant