MFA.LogsAPI.com

MFA Logs API.
Explain authentication decisions without recording credentials.

Design MFA audit events for challenge verification, enrollment, recovery, policy decisions, session outcomes, and secret-safe diagnostics.

Connect challenges to access decisions

Multifactor authentication produces a sequence of decisions. A challenge can be created, displayed, answered, verified, or abandoned before the application decides whether to issue a session. Give each stage a precise event type. A browser interaction and a verifier decision provide different evidence, so record their source components and avoid treating them as interchangeable.

Use an authentication-attempt reference across the journey and a separate identifier for each challenge. Connect a session-issued event to the decision that authorized it. Concurrent logins from the same account should remain separate attempts. These relationships let an investigator follow the actual sequence without grouping events only by username and nearby timestamps.

Include changes and recovery

An authentication history is incomplete if it covers sign-ins but omits factor enrollment, replacement, removal, and account recovery. Distinguish requested changes from completed changes. Record the initiating actor, affected factor reference, outcome, and policy version without retaining the factor's secret or raw credential material.

Give recovery its own workflow reference and bounded reason categories. An administrator-assisted change needs the administrator's identity as well as the affected account. The MFA audit trail guide develops this event model and shows how clear outcomes distinguish rejection, cancellation, expiration, and dependency failure.

Make investigation safe and practical

Build an allowlist for retained fields. Keep one-time codes, recovery codes, passwords, access tokens, and factor secrets outside routine logs, including exception output. Prefer opaque actor references over repeated personal identifiers. Restrict any mapping that connects those references to real accounts, and review what alert exports reveal.

Test a completed login, failed challenge, expired challenge, duplicate event, recovery operation, and verifier outage. Check whether every resulting session can be traced to an explicit decision. The six field suggestions below describe useful purposes rather than a standard API schema; add timestamps, source context, and access controls according to the application you operate.

A PRACTICAL STARTING POINT

Illustrative field suggestions for your own event contract. Adapt the names, values, and collection rules to your system.

Recommended MFA event fields
FieldWhat it helps explain
authentication_attempt_idGroup events belonging to one authentication journey.
challenge_idIdentify the specific factor challenge being evaluated.
actor_refOpaque, tenant-scoped reference to the initiating account or administrator.
event_typeChallenge, verification, enrollment, recovery, or session transition.
outcomeBounded decision such as accepted, denied, expired, canceled, or unavailable.
policy_versionIdentify the rule set used for the authentication or change decision.