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] JwtTokenDecryptionParameters's Alg and Enc is not set in JsonWebTokenHandler's token decryption, IDX10611 and IDX10619 shows null in messges #3003

Open
ciaozhang opened this issue Nov 14, 2024 · 0 comments
Labels
Bug Product is not functioning as expected P3 If we have time in the milestone or it just is easy when addressing a more important issue

Comments

@ciaozhang
Copy link
Contributor

Where is the issue?

  • [x ] M.IM.JsonWebTokens

Repro
JwtSecurityTokenHandler DecryptToken inital the Alg and Enc
image
While JsonWebTokenHandler don't:
image

Expected behavior
Error message shouldshows the token's enc
Actual behavior
Microsoft.IdentityModel.Tokens.SecurityTokenDecryptionFailedException: IDX10619: Decryption failed. Algorithm: 'Null'. Either the Encryption Algorithm: 'Null' or none of the Security Keys are supported by the CryptoProviderFactory.

IDX10611: Decryption failed. Encryption is not supported for: Algorithm: 'Null', SecurityKey: '[PII of type 'Microsoft.IdentityModel.Tokens.X509SecurityKey' is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.

@pmaytak pmaytak added Bug Product is not functioning as expected Good First Issue This is a good item for new team members P3 If we have time in the milestone or it just is easy when addressing a more important issue and removed needs attention untriaged Good First Issue This is a good item for new team members labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Product is not functioning as expected P3 If we have time in the milestone or it just is easy when addressing a more important issue
Projects
None yet
Development

No branches or pull requests

2 participants