fix: 独立审计日志并补齐令牌身份与失败记录

This commit is contained in:
Nixevol
2026-09-30 15:31:34 +08:00
parent 08c0eb09be
commit afe6a77e31
12 changed files with 641 additions and 124 deletions
+1
View File
@@ -180,6 +180,7 @@ func runServe(ctx context.Context, cfg config.Config) error {
Tokens: apiTokens,
Locks: loginLocks,
Logger: slog.Default(),
AuditLogger: slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{Level: slog.LevelInfo})),
TrustedProxies: trustedNets,
Identity: idApp,
Groups: groupApp,