diff --git a/server/server.go b/server/server.go index 1cf71c5038b..220528118d9 100644 --- a/server/server.go +++ b/server/server.go @@ -434,6 +434,20 @@ func newServer(ctx context.Context, c Config, rotationStrategy rotationStrategy) return nil, err } handleWithCORS("/.well-known/openid-configuration", discoveryHandler) + // Handle the root path for the better user experience. + handleWithCORS("/", func(w http.ResponseWriter, r *http.Request) { + _, err := fmt.Fprintf(w, ` +