Skip to content
Snippets Groups Projects
Commit d1c5e1ec authored by gbe's avatar gbe
Browse files

Log user authentication

parent 770a6c2f
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,10 @@ func Require(next http.Handler, authFailed http.Handler, provider Provider) http
return
}
log.Get(r).
WithField("user", *user).
Info("user authenticated")
key := contextKey("user")
ctx := context.WithValue(r.Context(), key, *user)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment