You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The authorization server MUST allow any port to be specified at the
time of the request for loopback IP redirect URIs, to accommodate
clients that obtain an available ephemeral port from the operating
system at the time of the request.
This is vital for local apps, but the behaviour is missing in Gitea.
Relevant code
OAuth RFC https://datatracker.ietf.org/doc/html/rfc8252#section-7.3 describes special handling for loopback redirect URIs, in particular that the port need not match.
This is vital for local apps, but the behaviour is missing in Gitea.
Relevant code
gitea/models/auth/oauth2.go
Lines 58 to 60 in 5a3b9ac
GitHub implements this behaviour https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps#localhost-redirect-urls
The text was updated successfully, but these errors were encountered: