Built for the quantum era
UniAuth includes documented cryptographic controls for specific data and protocol paths. Their guarantees are scoped by key availability, deployment, legacy compatibility, and the algorithms actually used; no every-hash, every-token, or every-session claim is made.
Cryptographic foundations
AES-256-GCM encryption at rest
The documented TOTP-secret, OAuth-token, PQC-private-key, and LDAP-password fields use AES-256-GCM before storage. This list does not imply that every database value is application-layer encrypted. Format: iv:tag:ciphertext.
The encryption key is a separate 256-bit secret (ENCRYPTION_KEY), not derived from the JWT secret. Rotating one doesn't compromise the other.
ML-DSA-44 session signatures
New sessions may carry an ML-DSA-44 (FIPS 204) signature when signing material is available. When a v2 signature is present, touchSession() verifies it and rejects a mismatch. Legacy sessions and sessions created while the signer is unavailable may have no post-quantum signature.
A session carrying a valid ML-DSA signature has an additional post-quantum integrity signal. Sessions without that optional signature retain only their documented classical protections.
Argon2id password hashing
New and reset passwords use Argon2id (64 MB memory, 3 iterations, 4 parallelism). Production password-hash import and transparent JIT login upgrade are unavailable. Standard profile import rejects legacy password credential fields and sends no onboarding message. Imported users need a separately initiated supported password reset or magic-link sign-in, or a separately implemented and validated credential bridge. Password strength is scored with zxcvbn (score ≥ 2 required) and checked against HaveIBeenPwned's k-anonymity API.
Pairwise subject identifiers
Connected apps never see your real UUID. Each app receives a unique, deterministic, app-specific identifier: HMAC-SHA256(userId:clientId, secret). Apps cannot correlate users across services — your privacy is structural, not policy-based.
Runtime protection
Fresh statistical login-risk assessment
Fresh statistical login-risk uses first/new IP, new user agent, unusual UTC hour, recent failures, and login velocity. Signals contribute to a combined policy decision; no single signal is a direct action. Geo anomaly, machine learning, and saved anomaly rules are not fresh-score factors; trusted-device status is applied separately by conditional access.
Progressive account lockout
5 failures = 1 min, 10 = 5 min, 15 = 15 min, 20+ = 1 hour. Returns generic 401 (no account enumeration). Resets on successful auth. Lockout applies equally to password, passkey, and magic-link flows.
Session lifecycle
Configured browser sessions use inactivity and absolute lifetimes. When both a stored fingerprint and request headers are available, client changes are evaluated and same-client network changes may re-bind. Session limits and exact coverage depend on the creation flow and configuration.
SSRF-safe outbound
Selected webhook, OIDC-discovery, and back-channel paths use safeFetch with DNS and address validation. Audit each outbound call path separately; no universal SSRF-immunity or impossible-rebinding guarantee is made.
CORS + CSP + rate limiting
Documented routes apply scoped CORS, CSP, and rate-limit controls. Redis-backed distributed limiting requires deployment configuration and is not active merely because source support exists.
Timing-safe everything
Selected secret comparisons use timing-safe primitives. Coverage must be verified per producer path; no claim that every comparison is timing-safe or that all timing side channels are impossible is made.
Compliance & audit
Selected producer paths create activity or hash-chained audit records and selected exports apply redaction. Event and redaction coverage is not universal and must be verified per path.