diff --git a/cozy-oauth-proxy b/cozy-oauth-proxy index 665cef01aaceacd4b768b43cd98468ec32d713e4..167f394e0d82fb1f3524763fbcba5a0cda17a335 100755 Binary files a/cozy-oauth-proxy and b/cozy-oauth-proxy differ diff --git a/main.go b/main.go index 8eccee418ddb8eb035d32e131ca0c0f7c798cc5b..87eb21aebe77d4f461a0f9b59b6c85e302255ab4 100644 --- a/main.go +++ b/main.go @@ -3,6 +3,7 @@ package main import ( "encoding/json" "flag" + "io" "io/ioutil" "net/http" "net/url" @@ -48,6 +49,10 @@ func main() { mux := http.NewServeMux() log.Info("Server started") + mux.HandleFunc("/healthcheck", func(w http.ResponseWriter, r *http.Request) { + io.WriteString(w, "OK\n") + }) + mux.HandleFunc("/auth", func(w http.ResponseWriter, r *http.Request) { log.Debug("New auth request") query := r.URL.Query()