forked from baron/baron-sso
Merge origin/main and remove Descope deps
This commit is contained in:
@@ -27,9 +27,9 @@ type AuditLogEntry struct {
|
||||
Headers map[string]string // Core headers like Host, Cookie, Set-Cookie
|
||||
LoginIDs map[string]string // loginId and loginId_normalized
|
||||
Token string // For reset tokens, magic link tokens
|
||||
DescopeError string
|
||||
DescopeStatus int // Descope HTTP status
|
||||
DescopeBody string // Descope response body (full raw)
|
||||
ProviderError string
|
||||
ProviderStatus int // Provider HTTP status
|
||||
ProviderBody string // Provider response body (full raw)
|
||||
RefreshToken string
|
||||
SessionJwt string
|
||||
AccessJwt string
|
||||
@@ -143,14 +143,14 @@ func (ale *AuditLogEntry) Log(level slog.Level, msg string, args ...any) {
|
||||
if ale.Token != "" {
|
||||
attrs = append(attrs, slog.String("token", ale.Token))
|
||||
}
|
||||
if ale.DescopeError != "" {
|
||||
attrs = append(attrs, slog.String("descope_error", ale.DescopeError))
|
||||
if ale.ProviderError != "" {
|
||||
attrs = append(attrs, slog.String("provider_error", ale.ProviderError))
|
||||
}
|
||||
if ale.DescopeStatus != 0 {
|
||||
attrs = append(attrs, slog.Int("descope_http_status", ale.DescopeStatus))
|
||||
if ale.ProviderStatus != 0 {
|
||||
attrs = append(attrs, slog.Int("provider_http_status", ale.ProviderStatus))
|
||||
}
|
||||
if ale.DescopeBody != "" {
|
||||
attrs = append(attrs, slog.String("descope_response_body", ale.DescopeBody))
|
||||
if ale.ProviderBody != "" {
|
||||
attrs = append(attrs, slog.String("provider_response_body", ale.ProviderBody))
|
||||
}
|
||||
if ale.RefreshToken != "" {
|
||||
attrs = append(attrs, slog.String("refresh_token", ale.RefreshToken))
|
||||
|
||||
Reference in New Issue
Block a user