Episode
Creating the WebAuthn Components Library for Phoenix LiveView Apps with Owen Bickford
- Podcast
- Elixir Wizards
- Published
- Nov 14, 2024
- Duration seconds
- 3452
- Processing state
processed
Actions
POST https://stenobird.com/v1/public/podcasts/elixir-wizards/episodes/creating-the-webauthn-components-library-for-phoenix-liveview-apps-with-owen-bickford/transcription-requests
Idempotently request low-priority transcript generation for this episode.GET https://stenobird.com/podcast/elixir-wizards/creating-the-webauthn-components-library-for-phoenix-liveview-apps-with-owen-bickford.md
Read the agent-friendly Markdown representation of this episode resource.
Summary
Explore the transition from vulnerable password-based authentication to the more secure, user-friendly world of passkeys. Learn how the WebAuthnComponents library simplifies implementing hardware-backed, passwordless logins in Phoenix LiveView applications.
Topics
- Elixir
- Phoenix LiveView
- WebAuthn
- Passkeys
- Asymmetric Cryptography
- Cybersecurity
- Authentication
- Web Development
Highlights
- Main idea: Passkeys leverage the WebAuthn API and asymmetric cryptography to eliminate the risks of database leaks and credential stuffing
- Practical takeaway: Use the WebauthnComponents library to integrate hardware-based authentication like TPMs and Apple Keychain into Elixir apps
- Failure mode: Relying solely on passwords leaves users vulnerable to SIM swapping and sophisticated phishing attacks
- Implementation detail: The library utilizes Ecto schemas and LiveView components to manage the complex handshake between the browser and server
- Strategic advice: Introduce passkeys as an optional, high-security alternative rather than forcing a sudden technology shift on all users
Chapters
1:00The Evolution of Authentication: A brief history of moving from plain-text passwords to salted hashes and the inherent security flaws in each stage.10:05Understanding Passkeys and TPMs: How hardware-based modules like Trusted Platform Modules (TPM) manage credentials securely on modern devices.14:05Library Architecture and Flexibility: How the WebauthnComponents library uses migrations and configurable schemas to adapt to different application needs.18:25Asymmetric Cryptography in Practice: Comparing passkey mechanics to SSH keys and the benefits of public/private key pairs for secure logins.23:00Integrating WebAuthn into Phoenix: Using the library as a standalone authentication method within the Phoenix framework.27:10Managing User Experience and Support: Strategies for adopting new authentication tech without increasing customer support overhead or user friction.35:45The WebAuthn Handshake Flow: A technical walkthrough of managing challenges, attestations, and user creation via LiveView components.