mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-17 13:16:32 +01:00
Backport #36797 by @lunny - set OAuth2 authorization code `ValidUntil` on creation and add expiry checks during exchange - return a specific error when codes are invalidated twice to prevent concurrent reuse - add unit tests covering validity timestamps, expiration, and double invalidation --- Generate by a coding agent with Codex 5.2 Signed-off-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| 2fa.go | ||
| auth_test.go | ||
| auth.go | ||
| linkaccount.go | ||
| main_test.go | ||
| oauth2_provider.go | ||
| oauth_signin_sync.go | ||
| oauth_test.go | ||
| oauth.go | ||
| openid.go | ||
| password.go | ||
| webauthn.go | ||