Authentication Flow Engine

Compass

Key capabilities

Flow Recording

Each authentication request creates a CompassFlow — a complete record from first request to token issuance or failure.

Step-Level Detail

7 step types tracked individually: authorize, credential validation, MFA, token exchange, IdP redirect/callback, and finalize.

Per-Step Timings

Every step records its duration in milliseconds. Spot slow Argon2 rounds, external IdP latency, or database bottlenecks.

Rich Error Context

Failures include machine-readable error codes and human-readable messages — not just a 401.

Zero Overhead Off

When disabled, the FlowRecorder short-circuits immediately — no channels, no writes, no allocations.

Queryable

Query flows by user, client, grant type, status, or time range through the admin API.

How it works

1

Flow created

Authentication request arrives. Compass creates a flow with realm, client, grant type, IP, and user agent.

2

Steps recorded

Each phase of authentication — authorize, credential check, MFA, token exchange — is recorded with timing and outcome.

3

User identified

After successful credential validation, the user ID is attached to the flow, linking it for future queries.

4

Flow completed

Authentication finishes. The flow is marked success, failure, or expired with total duration in milliseconds.

Ready to use Compass?

Full reference, configuration options, and examples in the documentation.

Open docs