fix: login with Yubikey not working in some Safari browsers

This commit is contained in:
Elias Schneider
2026-09-20 14:02:08 +02:00
parent 79a0fca12b
commit 4858db3bb4
3 changed files with 93 additions and 0 deletions
@@ -194,6 +194,22 @@ func writeErrorResponse(c *gin.Context, classified classifiedError, requestID st
func logRequestError(c *gin.Context, err error, classified classifiedError, requestID string) {
if classified.status < http.StatusInternalServerError {
cause := errors.Unwrap(err)
if cause == nil {
return
}
slog.DebugContext(c.Request.Context(), "Request rejected",
slog.String("error_code", string(classified.code)),
slog.String("error_type", errorTypeName(err)),
slog.String("cause_type", errorTypeName(cause)),
slog.Int("http_status", classified.status),
slog.String("request_id", requestID),
slog.String("http_method", c.Request.Method),
slog.String("http_path", c.Request.URL.Path),
slog.Any("error", err),
slog.Any("cause", cause),
)
return
}