gitea/tests
wxiaoguang 3f1ef703d5
Refactor auth middleware (#36848)
Principles: let the caller decide what it needs, but not let the
framework (middleware) guess what it should do.

Then a lot of hacky code can be removed. And some FIXMEs can be fixed.

This PR introduces a new kind of middleware: "PreMiddleware", it will be
executed before all other middlewares on the same routing level, then a
route can declare its options for other middlewares.

By the way, allow the workflow badge to be accessed by Basic or OAuth2
auth.

Fixes: https://github.com/go-gitea/gitea/pull/36830
Fixes: https://github.com/go-gitea/gitea/issues/36859
2026-03-08 17:59:46 +08:00
..
e2e Rework e2e tests (#36634) 2026-02-20 16:26:47 -08:00
fuzz Fix fuzz test (#33156) 2025-01-09 15:15:47 +08:00
gitea-lfs-meta
gitea-repositories-meta Fix corrupted external render content (#35946) 2025-11-14 08:31:11 +08:00
integration Refactor auth middleware (#36848) 2026-03-08 17:59:46 +08:00
testdata/data Add artifacts test fixture (#30300) 2024-11-01 10:29:54 +08:00
mssql.ini.tmpl Use "Enable Gravatar" but not "Disable" (#36771) 2026-02-27 16:39:26 +00:00
mysql.ini.tmpl Use "Enable Gravatar" but not "Disable" (#36771) 2026-02-27 16:39:26 +00:00
pgsql.ini.tmpl Use "Enable Gravatar" but not "Disable" (#36771) 2026-02-27 16:39:26 +00:00
sqlite.ini.tmpl Use "Enable Gravatar" but not "Disable" (#36771) 2026-02-27 16:39:26 +00:00
test_utils.go Clean up Makefile, tests and legacy code (#36638) 2026-02-19 01:23:32 +00:00