diff --git a/Src/Dlhis.Middle/Controllers/OAuth2Controller.cs b/Src/Dlhis.Middle/Controllers/OAuth2Controller.cs
new file mode 100644
index 00000000..dad8378d
--- /dev/null
+++ b/Src/Dlhis.Middle/Controllers/OAuth2Controller.cs
@@ -0,0 +1,36 @@
+using System.Text;
+using Dlhis.Middle.Request;
+using Microsoft.AspNetCore.Mvc;
+using Newtonsoft.Json.Linq;
+
+namespace Dlhis.Middle.Controllers;
+
+///
+/// OAuth2认证
+///
+[Route("api/user/[controller]")]
+[ApiController]
+public class OAuth2Controller : ControllerBase
+{
+ private readonly IHttpClientFactory _httpClientFactory;
+ private readonly IConfiguration _configuration;
+
+ public OAuth2Controller(IHttpClientFactory httpClientFactory, IConfiguration configuration)
+ {
+ _httpClientFactory = httpClientFactory;
+ _configuration = configuration;
+ }
+
+ [HttpPost("clientgrant")]
+ public async Task