summaryrefslogtreecommitdiffstats
path: root/modules/auth/sso/reverseproxy.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-05-09 17:04:53 +0100
committerGitHub <noreply@github.com>2021-05-09 18:04:53 +0200
commita2df2654765c85cb7e7efc5eec9a97befa47bf15 (patch)
tree5acff01b72dfae53be85f1ddc80a6328472b0cd3 /modules/auth/sso/reverseproxy.go
parent4ea0b46d9b484917f122d08428cde71b3ba80aed (diff)
downloadgitea-a2df2654765c85cb7e7efc5eec9a97befa47bf15.tar.gz
gitea-a2df2654765c85cb7e7efc5eec9a97befa47bf15.zip
Add trace logging to SSO methods (#15803)
It is currenly impossible to detect which "SSO" method is responsible for login. This PR adds some basic trace logging to these methods. Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/auth/sso/reverseproxy.go')
-rw-r--r--modules/auth/sso/reverseproxy.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/auth/sso/reverseproxy.go b/modules/auth/sso/reverseproxy.go
index ca9450e714..62598a15cd 100644
--- a/modules/auth/sso/reverseproxy.go
+++ b/modules/auth/sso/reverseproxy.go
@@ -65,6 +65,7 @@ func (r *ReverseProxy) VerifyAuthData(req *http.Request, w http.ResponseWriter,
if len(username) == 0 {
return nil
}
+ log.Trace("ReverseProxy Authorization: Found username: %s", username)
user, err := models.GetUserByName(username)
if err != nil {
@@ -75,6 +76,7 @@ func (r *ReverseProxy) VerifyAuthData(req *http.Request, w http.ResponseWriter,
return nil
}
+ log.Trace("ReverseProxy Authorization: Logged in user %-v", user)
return user
}