[Bug] IDX10503: Signature validation failed. Token does not have a kid. (System.NotImplementedException: The method or operation is not implemented. at Microsoft.IdentityModel.Tokens.SignatureProvider.Verify...) #1970
Labels
Customer reported
Indicates issue was opened by customer
Documentation
The issue is related to adding documentation
IdentityModel8x
Future breaking issues/features for IdentityModel 8x
Milestone
Which version of Microsoft.IdentityModel are you using?
Issue is reproduced at latest (atm) version - 6.25.0
Issue is NOT reproducing at 6.22.1 version
Where is the issue?
Is this a new or an existing app?
Exactly the issue - everything was working on 6.22.1, but since 6.23.0 i am failing a JWT signature check. I am using https://nsec.rocks/ for custom JWT signing and validating. I am using custom
TokenValidationParameters.CryptoProviderFactory
that points to customICryptoProvider
provider, that creates customSignatureProvider
for signing an validating JWT. Simplified code is provided belowRepro
Custom classes that are used:
Calling the validation:
Expected behavior
validationResult.IsValid
should return True (if signature is valid, that is)Actual behavior
An exception in
validationResult.Exception
, with message:Possible solution
Use 6.22.1 version and don't upgrade. I believe i am missing some kind of a setting, or an injection, but i do not understand what exactly. Much obliged for any assistance.
The text was updated successfully, but these errors were encountered: