From c31919d0f9b2cab313ca1dae9ce20d0b28f577ac Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Fri, 20 Dec 2019 10:41:03 +0000
Subject: [PATCH] Log successful authorizations (with ttl)

---
 server/http.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/server/http.go b/server/http.go
index e5638dc..6401610 100644
--- a/server/http.go
+++ b/server/http.go
@@ -299,6 +299,8 @@ func (h *Server) handleGrantTicket(w http.ResponseWriter, req *http.Request) {
 		return
 	}
 
+	log.Printf("authorized %s for %s (ttl=%ds)", username, service, int(ttl.Seconds()))
+
 	// Record the service in the session.
 	auth.AddService(service)
 
-- 
GitLab