functions here use CallerSkipFrame to ensure correct caller info is logged
(c *gin.Context, username, provider string)
| 5 | // functions here use CallerSkipFrame to ensure correct caller info is logged |
| 6 | |
| 7 | func AuditLoginSuccess(c *gin.Context, username, provider string) { |
| 8 | Audit.Info(). |
| 9 | CallerSkipFrame(1). |
| 10 | Str("event", "login"). |
| 11 | Str("result", "success"). |
| 12 | Str("username", username). |
| 13 | Str("provider", provider). |
| 14 | Str("ip", c.ClientIP()). |
| 15 | Send() |
| 16 | } |
| 17 | |
| 18 | func AuditLoginFailure(c *gin.Context, username, provider string, reason string) { |
| 19 | Audit.Warn(). |
no outgoing calls
no test coverage detected