Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Componenta Auth TOTP

Encrypted TOTP enrollment and reauthentication for Componenta Auth 3.

The package uses spomky-labs/otphp for RFC 6238 verification and libsodium XChaCha20-Poly1305 for secret encryption at rest.

Security properties:

  • raw TOTP secrets are returned only during enrollment and are never stored;
  • database rows contain authenticated ciphertext + nonce + key id;
  • accepted time steps are persisted and cannot be replayed;
  • enrollment must be confirmed with a valid code before the credential becomes active;
  • pending enrollment secrets expire after a bounded server-side TTL (10 minutes by default);
  • TOTP evidence adds a possession factor but never claims phishing resistance;
  • successful reauthentication rotates the active SessionCredential.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages