Download the PHP package componenta/auth-otp without Composer
On this page you can find all versions of the php package componenta/auth-otp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download componenta/auth-otp
More information about componenta/auth-otp
Files in componenta/auth-otp
Package auth-otp
Short Description Bound one-time-code authentication challenges for Componenta Auth 3
License MIT
Informations about the package auth-otp
Componenta Auth OTP
Generic one-time-code challenges for Componenta Auth 3.
OTP is a proof mechanism, not an email-login package. Purpose and channel are bounded extensible identifiers. Browser login binds the challenge to a short-lived pre-authentication transaction; reauthentication binds it to the current public AuthSession UUID.
Security properties:
- CSPRNG numeric codes: 4-8 digits when explicitly configured, six digits by default; for new deployments prefer six or more and retain bounded abuse limits;
- HMAC-SHA-256 verifier with challenge/purpose domain separation;
- plaintext code is never persisted;
- single-use atomic verification;
- per-challenge attempt limit;
- aggregate subject+purpose failure budget survives resend/new challenge;
- resend cooldown;
- generic public invalid-code denial;
- channel-specific evidence never upgrades itself to MFA/phishing resistance.
Version 2.0.1 compatibility
Version 2.0.0 requires componenta/auth-session-http ^2.0.1. Its browser
security contract uses componenta/http-csrf-middleware ^3.0, which validates
Origin/Referer on unsafe requests and rejects missing origin metadata by
default. Upgrade the session HTTP and CSRF packages together; do not disable
origin validation to preserve older clients.
See the changelog for migration details. Session issuance continues to use the shared Componenta Auth session APIs; this package does not create an independent session or CSRF stack.
All versions of auth-otp with dependencies
componenta/auth Version ^3.0
componenta/auth-http Version ^1.0
componenta/auth-session Version ^1.0
componenta/auth-session-http Version ^2.0.1
componenta/identity Version ^1.0.1
cycle/database Version ^2.22
psr/clock Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0