]> source.dussan.org Git - gitea.git/commit
Use appSubUrl for OAuth2 callback URL tip (#28266) (#28275)
authorGiteabot <teabot@gitea.io>
Thu, 30 Nov 2023 00:26:47 +0000 (08:26 +0800)
committerGitHub <noreply@github.com>
Thu, 30 Nov 2023 00:26:47 +0000 (00:26 +0000)
commit84e65afffd203257d6b997312e33b762f6fc4981
tree2b81ad2adbd1b2774b6f6e50275bc9b23f9ed60e
parentd2908b27940fdc829a8bff96570972cd628d65a0
Use appSubUrl for OAuth2 callback URL tip (#28266) (#28275)

Backport #28266 by @earl-warren

- When crafting the OAuth2 callbackURL take into account `appSubUrl`,
which is quite safe given that its strictly formatted.
- No integration testing as this is all done in Javascript.
- Resolves https://codeberg.org/forgejo/forgejo/issues/1795

(cherry picked from commit 27cb6b7956136f87aa78067d9adb5a4c4ce28a24)

Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com>
Co-authored-by: Gusted <postmaster@gusted.xyz>
web_src/js/features/admin/common.js