Live cloud application
AWS passwordless authentication
A serverless sign-in flow that sends a one-time magic link and six-digit code, consumes either credential exactly once, and issues a JWT for protected API access. The system is deployed on AWS and managed as Terraform infrastructure.
Python packages in practice
-
boto3Writes challenge records, performs conditional DynamoDB transactions, and reads managed secrets.
-
PyJWTIssues short, signed authorization tokens and validates them at the protected API boundary.
-
resendDelivers the login link and code while keeping the provider credential outside source control.
-
unittestCovers parsing and security rules; LocalStack integration tests exercise replay and concurrency.
Real usage
- 01A user requests access with an email address.
- 02The service sends two ways to prove possession.
- 03The first valid link or code wins atomically.
- 04A signed JWT unlocks the protected endpoint.
- Single-use under concurrency
- Bounded code attempts
- Terraform-managed AWS deployment