fix(handler/sso/server): wildcard redirects to default url

This commit is contained in:
Trong Huu Nguyen
2023-08-31 10:59:04 +02:00
parent 80d1415fbc
commit c887cf711e

View File

@@ -44,7 +44,7 @@ func (s *SSOServer) LogoutLocal(w http.ResponseWriter, r *http.Request) {
s.Standalone.LogoutLocal(w, r)
}
// Wildcard returns HTTP 404 Not Found.
// Wildcard redirects unhandled requests to the default redirect URL.
func (s *SSOServer) Wildcard(w http.ResponseWriter, r *http.Request) {
http.NotFound(w, r)
http.Redirect(w, r, s.Config.SSO.ServerDefaultRedirectURL, http.StatusFound)
}