forked from baron/baron-sso
Fix audit timeline app names and stabilize backend tests
This commit is contained in:
@@ -144,6 +144,19 @@ func AuditMiddleware(config AuditConfig) fiber.Handler {
|
||||
"tenant_id": tenantID,
|
||||
"request_body": maskedBody,
|
||||
}
|
||||
// 핸들러에서 추가한 상세 정보를 병합합니다.
|
||||
if extra := c.Locals("audit_details_extra"); extra != nil {
|
||||
switch v := extra.(type) {
|
||||
case map[string]string:
|
||||
for key, value := range v {
|
||||
details[key] = value
|
||||
}
|
||||
case map[string]interface{}:
|
||||
for key, value := range v {
|
||||
details[key] = value
|
||||
}
|
||||
}
|
||||
}
|
||||
if skipTimeline, ok := c.Locals("auth_timeline_skip").(bool); ok && skipTimeline {
|
||||
details["auth_timeline_skip"] = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user