From fb2f850311fdee931bc9bd08c911db37eb5176c1 Mon Sep 17 00:00:00 2001 From: yusing Date: Sat, 26 Apr 2025 06:57:02 +0800 Subject: [PATCH] fix(oidc): incorrect redirect url --- internal/auth/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/auth/auth.go b/internal/auth/auth.go index ba0ed008..6e8d2312 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -53,7 +53,7 @@ func RequireAuth(next http.HandlerFunc) http.HandlerFunc { func AuthCheckHandler(w http.ResponseWriter, r *http.Request) { if err := defaultAuth.CheckToken(r); err != nil { - http.Redirect(w, r, "/v1/auth/login", http.StatusFound) + defaultAuth.LoginHandler(w, r) } else { w.WriteHeader(http.StatusOK) }