-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong OAuth2 Form target when running on modified root URL #8461
Comments
Looking at code I don't see anything wrong, have you set ROOT_URL in app.ini right? |
I have the same problem (reported in #8466 which I closed now again). My config is
but the POST also goes to the base (https://example.com/login/oauth/grant) I also noted this on the configuration page (e.g. https://example.com/repo/user/settings/applications/oauth2/1) |
I'm also experiencing this on Drone. The URL redirect forgets the
|
Fix go-gitea#8461 - fix misspelling of {{AppSubUrl}} and other misspelling in template Fixes /explore and organisation redirection
The problem is here: gitea/templates/user/auth/grant.tmpl Line 19 in dbd9d8d
If you change that line to: gitea/templates/user/auth/grant.tmpl Line 19 in e9ac23c
The problem should be fixed. You can either wait for #8647 to be merged, or if you can't use 1.11 you should be able to make a custom version of the |
Fix #8461 - fix misspelling of {{AppSubUrl}} and other misspelling in template Fixes /explore and organisation redirection
Partial backport without changes to locale files. Fix go-gitea#8461 - fix misspelling of {{AppSubUrl}} and other misspelling in template Fixes /explore and organisation redirection
Partial backport without changes to locale files. Fix go-gitea#8461 - fix misspelling of {{AppSubUrl}} and other misspelling in template Fixes /explore and organisation redirection
[x]
):Description
I have set gitea up in docker behind a reverse proxy (Traefik). We are not given subdomains so we have to work with prefixes like
/git/
. When trying to integrate drone into our setup, granting authorization to it fails. I think I traced it down to the "grant or cancel" form action url leading to/login/oauth/grant
instead of/git/login/oauth/grant
. Manipulating the HTML and clicking the button then worked.Screenshots
The text was updated successfully, but these errors were encountered: