mirror of
1
Fork 0
forgejo/models/auth
Dmitrii Sharshakov 30982b9e7b feat(auth): add ability to regenerate access tokens (#6963)
- Add the ability to regenerate existing access tokens in the UI. This preserves the ID of the access token, but generates a new salt and token contents.
- Integration test added.
- Unit test added.
- Resolves #6880

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6963
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
Co-committed-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
2025-03-08 10:42:36 +00:00
..
TestOrphanedOAuth2Applications test: Global OAuth should not be deleted 2024-11-23 19:49:55 +01:00
access_token.go feat(auth): add ability to regenerate access tokens (#6963) 2025-03-08 10:42:36 +00:00
access_token_scope.go [GITEA] silently ignore obsolete sudo scope 2024-02-05 16:05:50 +01:00
access_token_scope_test.go [GITEA] silently ignore obsolete sudo scope 2024-02-05 16:05:50 +01:00
access_token_test.go feat(auth): add ability to regenerate access tokens (#6963) 2025-03-08 10:42:36 +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 Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
oauth2_test.go test: Global OAuth should not be deleted 2024-11-23 19:49:55 +01:00
session.go Fix session key conflict with database keyword (#28613) 2023-12-27 15:24:23 +08:00
session_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
source.go Drop SSPI auth support and more Windows files (#7148) 2025-03-08 00:43:41 +00:00
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 fix: xorm needs to be lowercase otherwise it is ignored 2024-12-29 16:25:51 +00:00
webauthn_test.go [FEAT] Add support for webauthn credential level 3 2024-08-29 10:05:03 +02:00