mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-06 00:17:27 +00:00
fix(handler/sso/server): wildcard redirects to default url
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user