Digests » 81

this week's favorite

Passwordless Authentication in Phoenix This guide assumes you are familiar with the basic flow, which you might have experienced in Slack or a growing number of apps: You provide an email address and get a magic link email containing a one time authentication token. The token is valid for a short period of time, clicking the link redeems it and signs you in – no more passwords!

Twitter OAuth Authentication with Elixir and Phoenix There are a few good examples showing how to use OAuth authentication in Phoenix and Elixir, but I wanted a solution which used a small amount of dependencies, and had the ability to make authenticated requests on behalf of a user.

Plasm – Ecto model generation Plasm generates Ecto models based on existing database tables in your database. Currently, Ecto only allows the ability to create migrations that creates new tables/schemas. If you have an existing project that you want to add Ecto support for you would have to hand code the models. This can be tedious for tables that have many columns.

Using the Registry in Elixir 1.4 One of the new additions in Elixir 1.4 that I’ve been looking forward to is the new Registry module. Lets look at one way to take advantage of this handy feature that is now part of the core library.