From 87d86dc7cfa95db3a1173358dfa9eb35c59bd6d9 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Fri, 21 Jun 2024 00:36:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BD=BF=E7=94=A8=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.User/Identity/Controllers/OAuth2Controller.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Dlhis.User/Identity/Controllers/OAuth2Controller.cs b/Src/Dlhis.User/Identity/Controllers/OAuth2Controller.cs index 35a2d7e8..e76e48dd 100644 --- a/Src/Dlhis.User/Identity/Controllers/OAuth2Controller.cs +++ b/Src/Dlhis.User/Identity/Controllers/OAuth2Controller.cs @@ -28,7 +28,7 @@ public class OAuth2Controller : ControllerBase { var authority = _identityServerOption.Value.Authority; - var httpClient = _httpClientFactory.CreateClient("oauth2"); + var httpClient = _httpClientFactory.CreateClient(); var content = new StringContent($"grant_type=client_credentials&client_id={request.ClientId}&client_secret={request.ClientSecret}&scope={request.Scope}", Encoding.UTF8, "application/x-www-form-urlencoded"); var response = await httpClient.PostAsync($"{authority}/connect/token", content);