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

wojtekmach
Hey everyone! Req is an HTTP client for Elixir that I’ve been working on for quite some time. There is already a lot of HTTP clients out...
New
handnot2
Samly can be used to enable SAML 2.0 Single Sign On in a Plug/Phoenix application. This library uses Erlang esaml to provide plug enabl...
New
woylie
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries. offset-based pagination with...
New
restlessronin
The repo is at GitHub - cyberchitta/openai_ex: Community maintained Elixir library for OpenAI API · GitHub. Docs are at OpenaiEx User Gu...
152 11030 135
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
fuelen
Hi all! I want to present a small library which provides a mix task for generating an Entity-Relationship Diagram for Ecto schemas. You...
New
anuaralfetahe
Hello Published a new library - ProcessHub! ProcessHub is a library designed to manage process distribution within the Elixir cluster. ...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
mudasobwa
I am seeing a lot of aplications of Argumentum ad Vericundiam in software discussions. They do link some piece of writing and point us to...
New
bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New
AstonJ
This showed up on my feed.. anyone heard of it? Just hype? Ox Alpha is a reasoning model designed for coding, sustained ag...
New
sorenone
Today we’re releasing Oban for Python. Not an Oban client in Python. Not a pythonx wrapper embedded in Elixir. Nope, it’s a fully operati...
New
sergio
It’s not that it’s vocabulary is too advanced. It’s something worse. I get lost trying to follow even a paragraph written by Claude. It’...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews