forgejo/models/auth
Gusted a8c61532d2
feat: migrate TOTP secrets to keying
- Currently the TOTP secrets are stored using the `secrets` module with
as key the MD5 hash of the Secretkey, the `secrets` module uses general
bad practices. This patch migrates the secrets to use the `keying`
module (#5041) which is easier to use and use better practices to store
secrets in databases.
- Migration test added.
- Remove the Forgejo migration databases, and let the gitea migration
databases also run forgejo migration databases. This is required as the
Forgejo migration is now also touching tables that the forgejo migration
didn't create itself.
2024-11-27 00:34:16 +01:00
..
TestOrphanedOAuth2Applications test: Global OAuth should not be deleted 2024-11-23 19:49:55 +01:00
access_token.go
access_token_scope.go
access_token_scope_test.go
access_token_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
auth_token.go fix: extend forgejo_auth_token table (part two) 2024-11-16 10:53:46 +01:00
main_test.go tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
oauth2.go fix: Do not delete global Oauth2 applications 2024-11-23 19:59:25 +01:00
oauth2_list.go
oauth2_test.go test: Global OAuth should not be deleted 2024-11-23 19:49:55 +01:00
session.go
session_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
source.go
source_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
twofactor.go feat: migrate TOTP secrets to keying 2024-11-27 00:34:16 +01:00
webauthn.go [FEAT] Add support for webauthn credential level 3 2024-08-29 10:05:03 +02:00
webauthn_test.go [FEAT] Add support for webauthn credential level 3 2024-08-29 10:05:03 +02:00