Which version of Microsoft.IdentityModel are you using?
8.0.0
Where is the issue?
Is this a new or an existing app?
App trying to use decrypt keys from the OIDC configuration
Repro
var your = (code) => here;
Expected behavior
If the key from the JWE token is not present in the TokenValidationParameters, attempt to use the decrypt keys in the configuration
Actual behavior
the configuration is not attempted as it's not passed to DecryptToken
TokenValidationResult tokenValidationResult = ReadToken(DecryptToken(jwtToken, validationParameters), validationParameters);
Possible solution
Use the right override of DecryptToken from that accepts the configuration
- TokenValidationResult tokenValidationResult = ReadToken(DecryptToken(jwtToken, validationParameters), validationParameters);
+ TokenValidationResult tokenValidationResult = ReadToken(DecryptToken(jwtToken, validationParameters, configuration), validationParameters);
Used for auto-decrypt
Which version of Microsoft.IdentityModel are you using?
8.0.0
Where is the issue?
Is this a new or an existing app?
App trying to use decrypt keys from the OIDC configuration
Repro
Expected behavior
If the key from the JWE token is not present in the TokenValidationParameters, attempt to use the decrypt keys in the configuration
Actual behavior
the configuration is not attempted as it's not passed to DecryptToken
Possible solution
Use the right override of DecryptToken from that accepts the configuration
Used for auto-decrypt