Add debug logging when receiving an oauth redirect (#3916)
Этот коммит содержится в:
коммит произвёл
enahum
родитель
dc09b7781a
Коммит
b0b39ce71c
@@ -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")
|
||||
|
||||
|
||||
@@ -1005,6 +1005,10 @@
|
||||
"id": "api.oauth.allow_oauth.bad_client.app_error",
|
||||
"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"
|
||||
|
||||
Ссылка в новой задаче
Block a user