forgejo/routers/web/user/setting
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
..
security Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
account.go [GITEA] rework long-term authentication 2023-10-05 08:50:54 +02:00
account_test.go Merge setting.InitXXX into one function with options (#24389) 2023-05-04 11:55:35 +08:00
adopt.go Fix unclear IsRepositoryExist logic (#24374) 2023-04-28 14:14:26 -04:00
applications.go Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
blocked_users.go [MODERATION] add user blocking API 2023-07-17 00:26:42 +02:00
keys.go Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
main_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
oauth2.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
oauth2_common.go Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
packages.go Add Chef package registry (#22554) 2023-02-06 09:49:21 +08:00
profile.go Refactor rename user and rename organization (#24052) 2023-05-21 23:13:47 +08:00
runner.go Add user level action runners (#24995) 2023-05-31 09:39:54 +08:00
webhooks.go Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00