diff --git a/saml/saml.go b/saml/saml.go index 7203f611f0622b491aa23025377bdb77098a4b9a..bd0f89892efd1dc18cd849e6830a65b0197663c8 100644 --- a/saml/saml.go +++ b/saml/saml.go @@ -261,7 +261,7 @@ func NewSAMLIDP(config *Config) (http.Handler, error) { h := idp.Handler() root := mux.NewRouter() - root.HandlePrefix(ssoURL.Path, w.Wrap(h, svc, nil)) + root.PathPrefix(ssoURL.Path).Handler(w.Wrap(h, svc, nil)) root.Handle(metadataURL.Path, h) return root, nil }