forgejo/routers/web
Denys Konovalov 0c770d528f
use existing oauth grant for public client ()
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 12:05:50 +02:00
..
admin Add missed return after ctx.ServerError () () 2024-05-31 14:35:19 +02:00
auth use existing oauth grant for public client () 2024-06-06 12:05:50 +02:00
devtest Move context from modules to services () 2024-03-06 12:10:43 +08:00
events Move context from modules to services () 2024-03-06 12:10:43 +08:00
explore Repository explore alphabetically order respect owner name () 2024-05-14 15:31:36 +02:00
feed Teach activities.GetFeeds() how to avoid returning duplicates 2024-05-09 18:37:30 +00:00
healthcheck Add health-check test 2024-04-06 08:44:23 +00:00
misc Move context from modules to services () 2024-03-06 12:10:43 +08:00
org Add missed return after ctx.ServerError () () 2024-05-31 14:35:19 +02:00
repo Add missed return after ctx.ServerError () () 2024-05-31 14:35:19 +02:00
shared Fix various problems around projects board view () 2024-05-14 15:51:15 +02:00
user Merge pull request '[v1.22/gitea] week 16 cherry pick to v7.0' () from earl-warren/forgejo:wip-v7.0-gitea-cherry-pick into v7.0/forgejo 2024-04-16 09:31:46 +00:00
base.go Fix panic in storageHandler () 2023-10-06 13:23:14 +00:00
githttp.go Move context from modules to services () 2024-03-06 12:10:43 +08:00
goget.go Move context from modules to services () 2024-03-06 12:10:43 +08:00
home.go migrate some more "OptionalBool" to "Option[bool]" () 2024-03-06 12:10:44 +08:00
metrics.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
nodeinfo.go Move context from modules to services () 2024-03-06 12:10:43 +08:00
swagger_json.go Move context from modules to services () 2024-03-06 12:10:43 +08:00
web.go Move reverproxyauth before session so the header will not be ignored even if user has login () () 2024-05-14 16:17:23 +02:00
webfinger.go fix: respond with JSON Resource Descriptor Content-Type per RFC7033 2024-04-02 09:41:57 +00:00