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);