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

This commit is contained in:
Nixevol
2026-09-30 16:22:49 +08:00
parent eb4e2db918
commit b7c8b6ffd6
12 changed files with 641 additions and 124 deletions
+1
View File
@@ -193,6 +193,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,