From 37f50b7e61043e02d2669992eabdde9f91b03e2b Mon Sep 17 00:00:00 2001 From: wanghu Date: Thu, 3 Sep 2026 21:41:34 +0800 Subject: [PATCH] 3 --- src/YhCore.WebApi/Middleware/SsoProtectionMiddleware.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/YhCore.WebApi/Middleware/SsoProtectionMiddleware.cs b/src/YhCore.WebApi/Middleware/SsoProtectionMiddleware.cs index 620d5a4..1dc4ff8 100644 --- a/src/YhCore.WebApi/Middleware/SsoProtectionMiddleware.cs +++ b/src/YhCore.WebApi/Middleware/SsoProtectionMiddleware.cs @@ -110,7 +110,6 @@ namespace YhCore.WebApi.Middleware context.Response.Headers.Remove("Location"); context.Response.ContentType = "application/json; charset=utf-8"; await context.Response.WriteAsync("{\"code\":302,\"urlToRedirectTo\":\"" + location + "\"}"); - return; } // 未认证 → Challenge → 302 重定向 CAS 登录页(ticket 校验与回跳由新框架 CasAuthenticationHandler 处理)。