|
@@ -20,7 +20,7 @@ namespace TEAMModelOS.SDK.Extension.JwtAuth
|
|
// var creds = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(configuration["SecurityKey"]), SecurityAlgorithms.RsaSha256Signature);
|
|
// var creds = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(configuration["SecurityKey"]), SecurityAlgorithms.RsaSha256Signature);
|
|
//var creds = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(configuration["SecurityKey"]));
|
|
//var creds = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(configuration["SecurityKey"]));
|
|
string path = BaseConfigModel.ContentRootPath;
|
|
string path = BaseConfigModel.ContentRootPath;
|
|
- RsaSecurityKey creds = new RsaSecurityKey(RsaHelper.LoadCertificateFile(path + "/private.pem"));
|
|
|
|
|
|
+ RsaSecurityKey creds = new RsaSecurityKey(RsaHelper.LoadCertificateFile(path + "/JwtRsaFile/private.pem"));
|
|
//RsaSecurityKey creds = new SigningCredentials(new SymmetricSecurityKey(Encoding.UTF8.GetBytes(configuration["SecurityKey"])), SecurityAlgorithms.RsaSha256Signature);
|
|
//RsaSecurityKey creds = new SigningCredentials(new SymmetricSecurityKey(Encoding.UTF8.GetBytes(configuration["SecurityKey"])), SecurityAlgorithms.RsaSha256Signature);
|
|
// 令牌验证参数
|
|
// 令牌验证参数
|
|
var tokenValidationParameters = new TokenValidationParameters
|
|
var tokenValidationParameters = new TokenValidationParameters
|