forgejo/routers/web
Gusted 51988ef52b
[GITEA] rework long-term authentication
- The current architecture is inherently insecure, because you can
construct the 'secret' cookie value with values that are available in
the database. Thus provides zero protection when a database is
dumped/leaked.
- This patch implements a new architecture that's inspired from: [Paragonie Initiative](https://paragonie.com/blog/2015/04/secure-authentication-php-with-long-term-persistence#secure-remember-me-cookies).
- Integration testing is added to ensure the new mechanism works.
- Removes a setting, because it's not used anymore.

(cherry-pick from eff097448b)

Conflicts:

	modules/context/context_cookie.go
	trivial context conflicts

	routers/web/web.go
	ctx.GetSiteCookie(setting.CookieRememberName) moved from services/auth/middleware.go
2023-10-05 08:50:54 +02:00
..
admin Fix admin queue page title and fix CI failures (#26409) (#26421) 2023-08-21 07:22:18 +02:00
auth [GITEA] rework long-term authentication 2023-10-05 08:50:54 +02:00
devtest Make "cancel" buttons have proper type in modal forms (#25618) (#25641) 2023-07-03 17:09:38 +08:00
events
explore Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
feed Pass 'not' to commit count (#24473) 2023-05-08 07:10:53 +00:00
healthcheck
misc [API] Forgejo API /api/forgejo/v1 2023-07-16 23:44:22 +02:00
org [MODERATION] add user blocking API 2023-07-17 00:26:42 +02:00
repo Fix issue templates when blank isses are disabled (#27061) (#27082) 2023-09-20 12:50:46 +02:00
shared Fix typo of RunerOwnerID (#26508) (#26528) 2023-08-21 07:27:20 +02:00
user [GITEA] rework long-term authentication 2023-10-05 08:50:54 +02:00
auth.go
auth_windows.go
base.go Fix all possible setting error related storages and added some tests (#23911) (#25244) 2023-06-14 08:36:52 +02:00
goget.go Support SSH for go get (#24664) 2023-05-12 09:44:37 +00:00
home.go [GITEA] rework long-term authentication 2023-10-05 08:50:54 +02:00
metrics.go
nodeinfo.go
swagger_json.go Group template helper functions, remove Printf, improve template error messages (#23982) 2023-04-08 21:15:22 +08:00
web.go Allow get release download files and lfs files with oauth2 token format (#26430) (#27378) 2023-10-03 14:48:40 +02:00
webfinger.go Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00