mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
fix: move oauth2 routes (#12240)
* fix: move oauth2 routes From /login/oauth2/* to /oauth2/*. /login/oauth2 causes /login to no longer get served by the frontend, even if nothing is actually served on /login itself. * Add forgotten comment on delete
This commit is contained in:
@ -44,7 +44,7 @@ func authorizeMW(accessURL *url.URL) func(next http.Handler) http.Handler {
|
||||
// a minimum in order to detect whether "allow" has been pressed, however.
|
||||
cameFromSelf := (origin == "" || originU.Hostname() == accessURL.Hostname()) &&
|
||||
refererU.Hostname() == accessURL.Hostname() &&
|
||||
refererU.Path == "/login/oauth2/authorize"
|
||||
refererU.Path == "/oauth2/authorize"
|
||||
|
||||
// If we were redirected here from this same page it means the user
|
||||
// pressed the allow button so defer to the authorize handler which
|
||||
|
Reference in New Issue
Block a user