type1fool

type1fool

WebAuthnLiveComponent WebAuthnComponents

See this post about renaming the package.

Passwordless authentication for Phoenix LiveView applications.

Description

I am happy to announce public availability of WebAuthnComponents, an implementation of passwordless authentication designed for LiveView applications.

As Passkey support is rolled out to operating systems, browsers, and credential managers, WebAuthnComponents will allow you to easily add passwordless authentication to greenfield and brownfield applications.

This package is released as part of my talk at ElixirConf 2022. As of September 1, 2022, it is in an early alpha stage, and I am looking for feedback from early adopters. See the readme for caveats and plans for v1.

Updates

Resources

Showing Posts 1 to 10

andreaseriksson

andreaseriksson

The presentation was great. Cant wait to test this out

type1fool

type1fool OP

Thank you @andreaseriksson! I’ll be updating documentation over the weekend so it’s clear what schemas and code you need to get things up and running.

derpycoder

derpycoder

Is there a recording of your talk?

I would like to see. Tried searching on Youtube to no avail. :sweat_smile:

type1fool

type1fool OP

The virtual talks were uploaded to the ElixirConf YouTube channel recently, and I suspect the in-person talks will be uploaded in the next few weeks. Until then, they’re only available through Vito with a paid pass.

type1fool

type1fool OP

Surprise! The video was uploaded just a couple hours ago. :tada:

10
Post #5
derpycoder

derpycoder

I’m so lucky, I started searching at such a time with so many coincidences.

I’m surprised!!!

Thank you, will watch it today. :grin:


I watched it. It’s awesome.

I will use it tonight.

tangui

tangui

Great talk! It’s nice to see Wax being used in such a neat way :slight_smile:

Note that I’ve released some very needed wax_ updates recently:

[0.6.0] - 2022-11-07

Changed

  • [Wax] Wax.new_authentication_challenge/1 signature change to support resident keys
  • [Wax] Wax.authenticate/6 signature change to support resident keys

[0.5.0] - 2022-11-04

Changed

  • [Wax] Requires OTP25+
  • [Wax] Supports Apple Anonymous attestation
  • [Wax] Returns metadata as a map conforming with FIDO Metadata Statement, and no longer Elixir structs
  • [Wax] All returned errors are exceptions
  • [Wax.Metadata] Wax now loads MDSv3 metadata, and no longer requires an access token
  • [Wax.Metadata] The tesla library is no longer used

Using discoverable credentials (resident keys) is now supported. That enables loginless login:

wax_demo has been updated accordingly.

type1fool

type1fool OP

Excellent! I’ll update Wax and check out the new features. :pray: :pray:

type1fool

type1fool OP

Now that the talk is publicly available, and life events have simmered down, I will be working on updates to the Hex package. I hope to have a new version within a week. :crossed_fingers:

derpycoder

derpycoder

Phoenix 1.7 rc is out as well. Perhaps now you can update the LiveView to 0.18 and remove those commented out slots you have in your LiveComponent.

Maybe even try out the gen.auth.live, because It would be awesome if your WebAuthnLiveComponent can play nice with the generated code. :grinning_face_with_smiling_eyes:


Also checkout phx_live_storybook! It would be great if the component you make is presentable in that view, because it will eventually get added to Phoenix 1.7 and It would be great to see running components in Storybook mode. As it makes it easy to explore.

Yesterday I searched around the Git repo for the component, unable to find any documentation or example code to run the WebAuthn component.

What’s better than a running live documentation inside Storybook.

https://github.com/phenixdigital/phx_live_storybook

Where Next? Top

Trending in Announcing Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
261 13183 112
New
achempion
Hi, I would like to tell about my initiative to further maintain and develop Waffle project which is the fork of Arc library. The progre...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
charlenopires
Hi everyone :waving_hand: I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New
gtcode
Aloha gang, There’s a new class of AI model out from TypeSafe. Jev is their flagship model. You can learn about it here: ...
New

Other Trending Topics Top

OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
bartblast
If you haven’t tried Hologram yet, what’s stopped you? Here’s why I’m asking. Building a framework turns out to be two jobs, the framewo...
New
AstonJ
With advancements in AI gathering pace and set to increasingly accelerate, perhaps it’s worth having an annual thread on the topic - feel...
New
mat-hek
Popcorn, the library that runs Elixir code in the browser, is now stable :popcorn: This is possible because it now builds on a very stab...
New
sntran
In my third year of college, around 2010, I found Erlang. A few years later, I found Elixir. I liked the ideas at once: many small proces...
New
gtcode
I’ve been tinkering with Lynx (by José) via hold_ledger. I used AI to write the code, a separate specification, the tests, and the Lean p...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews