]> source.dussan.org Git - gitea.git/commit
Use appSubUrl for OAuth2 callback URL tip (#28266)
authorEarl Warren <109468362+earl-warren@users.noreply.github.com>
Wed, 29 Nov 2023 01:37:12 +0000 (02:37 +0100)
committerGitHub <noreply@github.com>
Wed, 29 Nov 2023 01:37:12 +0000 (01:37 +0000)
commit8b45a4d3668b433eaca68c1f06f40181a9fb1e9b
treeed78ecc7299a48e6306b1728aa35fec464d2794e
parentcb8298b7178f5dde302604bfe34c658b725f16f8
Use appSubUrl for OAuth2 callback URL tip (#28266)

- 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: Gusted <postmaster@gusted.xyz>
web_src/js/features/admin/common.js