1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-27 09:11:53 -05:00
forgejo/routers/web/user/setting
Gusted 1ce33aa38d
fix: extend forgejo_auth_token table
- Add a `purpose` column, this allows the `forgejo_auth_token` table to
be used by other parts of Forgejo, while still enjoying the
no-compromise architecture.
- Remove the 'roll your own crypto' time limited code functions and
migrate them to the `forgejo_auth_token` table. This migration ensures
generated codes can only be used for their purpose and ensure they are
invalidated after their usage by deleting it from the database, this
also should help making auditing of the security code easier, as we're
no longer trying to stuff a lot of data into a HMAC construction.
-Helper functions are rewritten to ensure a safe-by-design approach to
these tokens.
- Add the `forgejo_auth_token` to dbconsistency doctor and add it to the
`deleteUser` function.
- TODO: Add cron job to delete expired authorization tokens.
- Unit and integration tests added.
2024-11-15 10:59:36 +01:00
..
security Fix disable 2fa bug (#32320) 2024-10-27 11:27:40 +01:00
account.go fix: extend forgejo_auth_token table 2024-11-15 10:59:36 +01:00
account_test.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
adopt.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
applications.go OAuth2 provider: support for granular scopes 2024-08-09 14:58:15 +02:00
blocked_users.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
keys.go Add setting to disable user features when user login type is not plain (#29615) 2024-04-07 11:09:21 +02:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
oauth2.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
oauth2_common.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
packages.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
profile.go [I18N] Improve English locale 2024-04-06 23:06:39 +05:00
runner.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
webhooks.go [REFACTOR] use Icon from interface in webhook list 2024-03-30 16:00:06 +01:00