summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/oauth.go2
-rw-r--r--i18n/en.json4
2 files changed, 6 insertions, 0 deletions
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")
diff --git a/i18n/en.json b/i18n/en.json
index d8df8e835..f2a2d2cd0 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -1006,6 +1006,10 @@
"translation": "invalid_request: Bad client_id"
},
{
+ "id": "api.oauth.receive_redirect.debug",
+ "translation": "OAuth2 redirect: {{.URL}}"
+ },
+ {
"id": "api.oauth.allow_oauth.bad_redirect.app_error",
"translation": "invalid_request: Missing or bad redirect_uri"
},