Files
gitea/modules
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
..
2026-03-07 00:28:46 +08:00
2026-02-28 11:23:20 -08:00
2025-09-13 18:01:00 +00:00
2026-02-28 11:23:20 -08:00
2026-02-28 11:23:20 -08:00
2026-02-28 11:23:20 -08:00
2026-01-24 05:11:49 +00:00
2022-12-30 23:31:00 +08:00
2026-03-08 17:59:46 +08:00