From b0b39ce71cd77fbffbf23d56b20db1927f0c6cb1 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 31 Aug 2016 09:56:31 -0400 Subject: Add debug logging when receiving an oauth redirect (#3916) --- api/oauth.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api/oauth.go') diff --git a/api/oauth.go b/api/oauth.go index 7942b0e0c..ef6c0a80b 100644 --- a/api/oauth.go +++ b/api/oauth.go @@ -290,6 +290,8 @@ func completeOAuth(c *Context, w http.ResponseWriter, r *http.Request) { params := mux.Vars(r) service := params["service"] + l4g.Debug(utils.T("api.oauth.receive_redirect.debug", map[string]interface{}{"URL": r.URL.String()})) + code := r.URL.Query().Get("code") state := r.URL.Query().Get("state") -- cgit v1.2.3-1-g7c22