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
[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
Repro
JwtSecurityTokenHandler DecryptToken inital the Alg and Enc
While JsonWebTokenHandler don't:
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.]'.
The text was updated successfully, but these errors were encountered:
Where is the issue?
Repro
JwtSecurityTokenHandler DecryptToken inital the Alg and Enc
While JsonWebTokenHandler don't:
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.]'.
The text was updated successfully, but these errors were encountered: