gitforge/routers/web
forgejo-backport-action ba789d9356 [v16.0/forgejo] fix: multiple session middlewares have independent in-memory state (#13589)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/13587

Fixes #13546.

https://codeberg.org/forgejo/forgejo/pulls/12776 separated web routes for different endpoints based upon the authentication required to access them.  In the process, a middleware constructor `common.Sessioner()` was invoked multiple times, one for each auth group.  When using an in-memory session store, this resulted in 6 different in-memory session stores being created with independent data storage.  As a result, when using an in-memory session store, session authentication didn't work the web routes that didn't perform the login session.

Co-authored-by: Mathieu Fenniak <mathieu@fenniak.net>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/13589
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
2026-07-23 16:59:13 +02:00
..
admin feat: add dynamic group mappings for OIDC (#11656) 2026-05-22 12:38:20 +02:00
auth fix: introduce lint-single-response to prevent control flow continuing past a ctx.Error(...)-style method (#13087) 2026-06-14 17:06:03 +02:00
demo
events
explore refactor: replace Value() from Option[T] with Get() & ValueOrZeroValue() (#11218) 2026-02-10 16:41:21 +01:00
feed fix: use an absolute URL for compare links in atom feed (#10933) 2026-02-01 10:00:21 +01:00
healthcheck
misc
moderation fix: introduce lint-single-response to prevent control flow continuing past a ctx.Error(...)-style method (#13087) 2026-06-14 17:06:03 +02:00
org feat: setting to add team members by invitations (#12845) 2026-06-15 01:46:25 +02:00
repo [v16.0/forgejo] fix: make assignment of projects to issues consistent (#13504) 2026-07-17 23:29:06 +02:00
shared fix: introduce lint-single-response to prevent control flow continuing past a ctx.Error(...)-style method (#13087) 2026-06-14 17:06:03 +02:00
user fix(ui): fall back to default theme from non-existent (#13110) 2026-06-17 19:18:09 +02:00
githttp.go
goget.go
home.go
metrics.go
nodeinfo.go
resizing.go feat: serve downsized versions of avatars (#11242) 2026-05-16 12:04:05 +02:00
swagger_json.go
web.go [v16.0/forgejo] fix: multiple session middlewares have independent in-memory state (#13589) 2026-07-23 16:59:13 +02:00
webfinger.go fix: introduce lint-single-response to prevent control flow continuing past a ctx.Error(...)-style method (#13087) 2026-06-14 17:06:03 +02:00