fix(handler/sso/proxy): redirect callback requests to login

This commit is contained in:
Trong Huu Nguyen
2023-04-29 08:52:41 +02:00
parent 568f9f7683
commit ab2a8b6fec

View File

@@ -133,7 +133,9 @@ func (s *SSOProxy) Login(w http.ResponseWriter, r *http.Request) {
}
func (s *SSOProxy) LoginCallback(w http.ResponseWriter, r *http.Request) {
http.NotFound(w, r)
ingressPath := s.GetPath(r)
login := url.LoginRelative(ingressPath, ingressPath)
http.Redirect(w, r, login, http.StatusFound)
}
func (s *SSOProxy) Logout(w http.ResponseWriter, r *http.Request) {