mirror of
1
Fork 0
forgejo/routers/web/auth
Denys Konovalov 97a0d90c39
use existing oauth grant for public client (#31015)
Do not try to create a new authorization grant when one exists already,
thus preventing a DB-related authorization issue.

Fix https://github.com/go-gitea/gitea/pull/30790#issuecomment-2118812426

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
(cherry picked from commit 9c8c9ff6d10b35de8d2d7eae0fc2646ad9bbe94a)
(cherry picked from commit 07fe5a8b13)
2024-06-06 13:59:06 +02:00
..
2fa.go Another round of `db.DefaultContext` refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
auth.go [GITEA] rework long-term authentication 2024-01-16 14:14:46 +00:00
linkaccount.go Another round of `db.DefaultContext` refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
main_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
oauth.go use existing oauth grant for public client (#31015) 2024-06-06 13:59:06 +02:00
oauth_test.go Bump github.com/golang-jwt/jwt to v5 (#25975) 2023-07-19 09:57:10 +00:00
openid.go Reduce usage of `db.DefaultContext` (#27073) 2023-09-14 17:09:32 +00:00
password.go More refactoring of `db.DefaultContext` (#27083) 2023-09-15 06:13:19 +00:00
webauthn.go Don't show Link to TOTP if not set up (#27585) (#27588) 2023-10-11 22:59:21 +02:00