Use it when configuring, checking or troubleshooting TOTP in Authentication.
TOTP
Both sides protect the same seed, compute HMAC over a time counter, truncate the result and accept a limited window while enforcing retry limits and preventing replay within the accepted interval.
1. TOTP: code from shared secret + time (30 s).
2. Clocks must be synchronised.
3. Allow small drift window.
4. Prevent code reuse.
5. Store secrets encrypted.
secret + time → HMAC → 6 digits
Context & applicabilityCommon mistakes · platform/version boundaries
A valid TOTP shows access to the shared seed or a current generated code within the accepted window, but it does not show origin, user intent or absence of real-time relay.
Suspicious evidence: Seed reused across accounts, QR retained in tickets, broad skew window, replay accepted, unlimited guesses, codes logged, cloned authenticator without governance or reset by weaker channel.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
unique shared seed enrollment → local/verifier time counter → HMAC/truncation → submitted TOTP → window/retry/replay validation → authenticated session → seed revoke/replace
Healthy evidence: Seeds are unique and protected, enrollment is controlled, acceptance window is narrow, retries and same-window replay are limited, clocks are monitored and seed revoke/re-enroll works.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- TOTP ≠ phishing-resistant.
- QR enrollment code ≠ harmless setup metadata; it contains or conveys the seed.
- Clock synchronized ≠ replay prevented.
- Six-digit code ≠ sufficient protection without rate limiting.
oathtool --totp -b <base32-secret>— current codedate -u; timedatectl— clock sync- Allowed time drift window — verification tolerance
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A valid TOTP shows access to the shared seed or a current generated code within the accepted window, but it does not show origin, user intent or absence of real-time relay.
In depth
TOTP (Time-based One-Time Password, RFC 6238) generates a 6- to 8-digit code from a shared secret and the current time, typically changing every 30 seconds. Authenticator apps (Microsoft/Google Authenticator, Authy, password managers) and hardware tokens implement it.
How it works: during enrolment the server and app share a secret (usually via QR code). Both compute HMAC(secret, time step) and truncate it to a short code; the server accepts codes within a small time window.
Operational points:
- Clocks must be roughly synchronised (devices use NTP).
- Protect enrolment: the QR code is the secret — never email it.
- Store secrets encrypted on the server side.
- Provide recovery processes that do not undermine MFA (no easy bypass via help desk).
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Authentication → TOTP. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://pages.nist.gov/800-63-4/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Authentication → TOTP proof map
Fast identity, policy/ceremony, outcome and closure evidence boundaries for Authentication → TOTP.
| Boundary | Establish | Does not establish |
|---|---|---|
| Identity and scope | Stable subject/account/resource mapping, owner, lifecycle state and expected action | Does not prove credential control or effective access |
| Policy and ceremony | Effective entitlement or authenticator/verifier policy plus all fallback paths | Configuration presence does not prove enforcement or assurance |
| Outcome | Allowed, denied, failure, expiry/revoke and target read-back tests correlated with telemetry | One success does not prove every interface, session or downstream target |
| Closure | Original end-to-end action retested; residual access/risk, owner and review trigger recorded | Administrative workflow completion alone is not closure |