From ca016151e5a675b7a66b60f04240542bd5af80a5 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Thu, 2 Apr 2026 12:12:56 +0800 Subject: [PATCH] Update backend/server/routers/auth_router_oidc.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- backend/server/routers/auth_router_oidc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/server/routers/auth_router_oidc.py b/backend/server/routers/auth_router_oidc.py index e3a1337a..c297fddb 100644 --- a/backend/server/routers/auth_router_oidc.py +++ b/backend/server/routers/auth_router_oidc.py @@ -349,14 +349,14 @@ async def oidc_login_url_handler(redirect_path: str = "/"): if not oidc_config.enabled or not oidc_config.is_configured(): raise HTTPException( status_code=status.HTTP_503_SERVICE_UNAVAILABLE, - detail="OIDC is not enabled or not configured" + detail="OIDC 登录暂不可用,请联系管理员" ) login_url = await OIDCUtils.build_authorization_url(redirect_path) if not login_url: raise HTTPException( status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, - detail="Failed to build authorization URL" + detail="生成登录链接失败,请稍后重试或联系管理员" ) return {"login_url": login_url}