.netcore集成jwt错误

错误:IDX10603: Decryption failed. Keys tried: ‘[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]’.\nExceptions caught:\n ‘[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]’.\ntoken: ‘[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]’ (Parameter ‘KeySize’)

错误原因:因为密钥的设置长度问题。(取数字签名的密钥)
解决方法:长度 大于16个字符

你可能感兴趣的:(#,.netcore知识点总结,c#)