authorize: pass idp id for webauthn url, allow unauthenticated access to static files (#3282)

This commit is contained in:
Caleb Doxsey 2022-04-20 17:07:09 +00:00 committed by GitHub
parent c19048649a
commit 74310b3de3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -39,5 +39,6 @@ func DashboardSubrouter(parent *mux.Router) *mux.Router {
return ui.ServeFile(w, r, fileName)
}))
}
return r
// return a new subrouter so any middleware doesn't get added to the static files
return r.NewRoute().Subrouter()
}