refactor(auth): update WriteBlockPage function to include action text and URL

This commit is contained in:
yusing
2025-12-22 10:27:48 +08:00
parent 5852053ef9
commit 4b2a6023bb
3 changed files with 12 additions and 11 deletions

View File

@@ -117,7 +117,7 @@ func (amw *oidcMiddleware) before(w http.ResponseWriter, r *http.Request) (proce
case errors.Is(err, auth.ErrMissingOAuthToken):
amw.auth.HandleAuth(w, r)
default:
auth.WriteBlockPage(w, http.StatusForbidden, err.Error(), auth.OIDCLogoutPath)
auth.WriteBlockPage(w, http.StatusForbidden, err.Error(), "Logout", auth.OIDCLogoutPath)
}
return false
}