-
Notifications
You must be signed in to change notification settings - Fork 432
Open
Labels
Description
Which version of Microsoft.IdentityModel are you using?
Microsoft.IdentityModel.Protocols.OpenIdConnect 8.0.2
Where is the issue?
- Microsoft.IdentityModel.Protocols.OpenIdConnect 8.0.2
We have upgraded to version 8.0.2 from 8.0.1.
After this upgrade, the metadata refresh not seems to be working as expected.
We have added a test to ensure that the metadata refresh is working when there is change in the metadata.
var token = tokenHandler.ValidateTokneAsync(.....)
// added test code to refresh the metadata, and then call the token validation again as below:
token = tokenHandler.ValidateTokneAsync(.....)
// Here it is failing with invalid token signatureExpected behavior
Token is validated succesfully.
Actual behavior
Token validation fails with SecurityTokenInvalidSignatureException exception.
The above test is working with Microsoft.IdentityModel.Protocols.OpenIdConnect 8.0.1.
But it is failng with version 8.0.2 onwards.
Possible solution
Please check if this issue is related to the change #2780