samples icon indicating copy to clipboard operation
samples copied to clipboard

IDX10511: Signature validation failed

Open sakalis opened this issue 2 years ago • 0 comments

Hello I am trying to follow your article https://www.scottbrady91.com/c-sharp/supporting-custom-jwt-signing-algorithms-in-dotnet-core Apparently for .net 7 and Microsoft.IdentityModel.JsonWebTokens 7.0.3 Portable.BouncyCastle 1.9.0

while I am veryfying the token I get the following error {"IDX10511: Signature validation failed. Keys tried: '[PII of type 'System.Text.StringBuilder' is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. \nNumber of keys in TokenValidationParameters: '1'. \nNumber of keys in Configuration: '0'. \nMatched key was in 'TokenValidationParameters'. \nkid: '123'. \nExceptions caught:\n '[PII of type 'System.Text.StringBuilder' is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.\ntoken: '[PII of type 'Microsoft.IdentityModel.JsonWebTokens.JsonWebToken' is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. See https://aka.ms/IDX10511 for details."}

sakalis avatar Nov 27 '23 14:11 sakalis