From d8c2a616b354226cf3d13ad287bafddd556142aa Mon Sep 17 00:00:00 2001 From: Justin Hines Date: Thu, 20 Sep 2018 12:57:57 -0400 Subject: [PATCH] cop_auth: host domain should respond to ping --- internal/auth/authenticator.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/auth/authenticator.go b/internal/auth/authenticator.go index e653ea9e..df8a7955 100644 --- a/internal/auth/authenticator.go +++ b/internal/auth/authenticator.go @@ -171,6 +171,7 @@ func (p *Authenticator) newMux() http.Handler { // we setup our service mux to handle service routes that use the required host header serviceMux := http.NewServeMux() + serviceMux.HandleFunc("/ping", p.withMethods(p.PingPage, "GET")) serviceMux.HandleFunc("/robots.txt", p.withMethods(p.RobotsTxt, "GET")) serviceMux.HandleFunc("/start", p.withMethods(p.OAuthStart, "GET")) serviceMux.HandleFunc("/sign_in", p.withMethods(p.validateClientID(p.validateRedirectURI(p.validateSignature(p.SignIn))), "GET"))