From e19c89ccd990459fa3c992d44046596d12e5f332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B7=B3?= Date: Fri, 28 Oct 2022 17:22:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Djwt=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../appsettings.Production.json | 12 ++++++++---- .../appsettings.Staging.json | 12 ++++++++---- .../appsettings.json | 12 ++++++++---- .../yi-sqlsugar-dev.db | Bin 221184 -> 221184 bytes 4 files changed, 24 insertions(+), 12 deletions(-) diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Production.json b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Production.json index 1442ad5d..10ac302e 100644 --- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Production.json +++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Production.json @@ -76,10 +76,14 @@ //【中间件配置】 //jwt授权内容,公钥私钥转移到目录下的pem文件 - "JWTTokenOptions": { - "Audience": "http://localhost:19000", - "Issuer": "http://localhost:19000", - "SecurityKey": "[]" + "JwtAuthorize": { + "Issuer": "cc", + "Audience": "cc", + "PolicyName": "permission", + "DefaultScheme": "Bearer", + "IsHttps": false, + "Expiration": 300, + "ReExpiration": 3000 }, //Redis地址配置 "RedisConnOptions": { diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Staging.json b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Staging.json index 1442ad5d..10ac302e 100644 --- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Staging.json +++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Staging.json @@ -76,10 +76,14 @@ //【中间件配置】 //jwt授权内容,公钥私钥转移到目录下的pem文件 - "JWTTokenOptions": { - "Audience": "http://localhost:19000", - "Issuer": "http://localhost:19000", - "SecurityKey": "[]" + "JwtAuthorize": { + "Issuer": "cc", + "Audience": "cc", + "PolicyName": "permission", + "DefaultScheme": "Bearer", + "IsHttps": false, + "Expiration": 300, + "ReExpiration": 3000 }, //Redis地址配置 "RedisConnOptions": { diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.json b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.json index 1442ad5d..10ac302e 100644 --- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.json +++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.json @@ -76,10 +76,14 @@ //【中间件配置】 //jwt授权内容,公钥私钥转移到目录下的pem文件 - "JWTTokenOptions": { - "Audience": "http://localhost:19000", - "Issuer": "http://localhost:19000", - "SecurityKey": "[]" + "JwtAuthorize": { + "Issuer": "cc", + "Audience": "cc", + "PolicyName": "permission", + "DefaultScheme": "Bearer", + "IsHttps": false, + "Expiration": 300, + "ReExpiration": 3000 }, //Redis地址配置 "RedisConnOptions": { diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db index 9c86fa4eea0e25fe1376123f1ffdadcf7d5dc1de..191da0c9777ec58ec8badbd2232df5e396a54fb7 100644 GIT binary patch delta 430 zcmZoTz}s+ucY-vd+C&*=MzzL-tqF`v{H3_Ln;H10^Xu^)<%{9{%-hYY%(I&(nEN$% z^JYPTRBrJ!ZUHtyMR{>WZ3brs5a1AF3R9JszAm0oV*0LFMs-aK1w(TyBSR}=Gd)ua z6H7~DvotPDJ)zl;5PG!0dJHYBjLh^bjm#`fjLg$GG4+Ie2zHvjKAuq=$s$8DDTtQd_ah##4m65TYxrLFDnTc^4I~F~&ejxM+K^$jdWooQvU;%_i zmfO2y87rBjxcQ41_`mQ!=fA~&mj3|%X8vXTGx>Y?>-md-VHLvf$ivLW2o9Yl0S0ae p2k31ehYP|1`A2|(6Uy0f1t`M-<;?m4