Commit 22741ac
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 go-gitea/gitea#30790 (comment)
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
(cherry picked from commit 9c8c9ff6d10b35de8d2d7eae0fc2646ad9bbe94a)1 parent d690a6c commit 22741ac
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
| 560 | + | |
561 | 561 | | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
562 | 576 | | |
563 | 577 | | |
564 | | - | |
| 578 | + | |
565 | 579 | | |
566 | 580 | | |
567 | 581 | | |
568 | 582 | | |
| 583 | + | |
569 | 584 | | |
570 | 585 | | |
571 | 586 | | |
| |||
0 commit comments