mirror of
1
Fork 0
forgejo/services/auth
Gusted e3d6622a63
[SECURITY] Rework long-term authentication
- This is a 'front-port' of the already existing patch on v1.21 and
v1.20, but applied on top of what Gitea has done to rework the LTA
mechanism. Forgejo will stick with the reworked mechanism by the Forgejo
Security team for the time being. The removal of legacy code (AES-GCM) has been
left out.
- 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.
2023-11-22 20:40:00 +01:00
..
source [TESTS] oauth2: make it possible to use an alternate http.Client 2023-11-13 12:21:08 +01:00
auth.go [SECURITY] Rework long-term authentication 2023-11-22 20:40:00 +01:00
auth_test.go Fix attachment download bug (#27486) 2023-10-10 15:33:56 +00:00
basic.go Unify two factor check (#27915) 2023-11-06 08:22:39 +00:00
group.go Remove `Named` interface (#26913) 2023-09-05 15:58:30 +00:00
httpsign.go Penultimate round of `db.DefaultContext` refactor (#27414) 2023-10-11 04:24:07 +00:00
interface.go Reduce usage of `db.DefaultContext` (#27073) 2023-09-14 17:09:32 +00:00
main_test.go Enhanced auth token / remember me (#27606) 2023-10-14 00:56:41 +00:00
oauth2.go Fix attachment download bug (#27486) 2023-10-10 15:33:56 +00:00
reverseproxy.go Fix attachment download bug (#27486) 2023-10-10 15:33:56 +00:00
session.go Replace more db.DefaultContext (#27628) 2023-10-15 17:46:06 +02:00
signin.go Refactor Find Sources and fix bug when view a user who belongs to an unactive auth source (#27798) 2023-11-03 01:41:00 +00:00
source.go Final round of `db.DefaultContext` refactor (#27587) 2023-10-14 08:37:24 +00:00
sspi.go Refactor Find Sources and fix bug when view a user who belongs to an unactive auth source (#27798) 2023-11-03 01:41:00 +00:00
sspiauth_posix.go Make SSPI auth mockable (#27036) 2023-09-17 23:32:56 +00:00
sspiauth_windows.go Make SSPI auth mockable (#27036) 2023-09-17 23:32:56 +00:00
sync.go Refactor Find Sources and fix bug when view a user who belongs to an unactive auth source (#27798) 2023-11-03 01:41:00 +00:00