From 41e586e1ccf9d5142353cdc0c130abf2e4d8eba8 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Tue, 26 Dec 2023 15:44:27 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=8E=AF=E5=A2=83setting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.Basic/appsettings.Development.json | 17 +++++++++++++++++ Src/Dlhis.Basic/appsettings.json | 12 +++--------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/Src/Dlhis.Basic/appsettings.Development.json b/Src/Dlhis.Basic/appsettings.Development.json index beca36f8..9d49a665 100644 --- a/Src/Dlhis.Basic/appsettings.Development.json +++ b/Src/Dlhis.Basic/appsettings.Development.json @@ -7,5 +7,22 @@ }, "InternalRequest": { "CommonRequestUrl": "http://localhost:5001" + }, + "SwaggerOptions": { + "Enable": true, + "Authority": "https://yikatong.isawesome.cn/oauth2", + "ClientId": "4fb184324eac4180", + "ClientSecret": "8ac8f235152f1524", + "Scopes": { + "openid": "openid", + "profile": "profile", + "yikatong": "yikatong" + } + }, + "IdentityServerOptions": { + "Authority": "https://yikatong.isawesome.cn/oauth2", + "RequireHttpsMetadata": true, + "Issuer": "identity.isawesome.cn", + "Audience": "" } } diff --git a/Src/Dlhis.Basic/appsettings.json b/Src/Dlhis.Basic/appsettings.json index c2ec7767..0a583362 100644 --- a/Src/Dlhis.Basic/appsettings.json +++ b/Src/Dlhis.Basic/appsettings.json @@ -18,7 +18,7 @@ }, "SwaggerOptions": { "Enable": true, - "Authority": "https://yikatong.isawesome.cn/oauth2", + "Authority": "http://identity", "ClientId": "4fb184324eac4180", "ClientSecret": "8ac8f235152f1524", "Scopes": { @@ -28,16 +28,10 @@ } }, "IdentityServerOptions": { - "Authority": "https://yikatong.isawesome.cn/oauth2", + "Authority": "http://identity", "RequireHttpsMetadata": true, "Issuer": "identity.isawesome.cn", - "Audience": "", - "Pat": { - "Enable": false, - "Scheme": "token", - "ClientId": "reference", - "ClientSecret": "123456" - } + "Audience": "" }, "Serilog": { "MinimumLevel": {