{"id":15059523,"url":"https://github.com/bigardone/passwordless-auth","last_synced_at":"2025-04-10T05:31:12.294Z","repository":{"id":151605739,"uuid":"135895920","full_name":"bigardone/passwordless-auth","owner":"bigardone","description":"Sample project of password-less \u0026 database-less socket authentication with Elixir, Phoenix and Elm.","archived":false,"fork":false,"pushed_at":"2019-02-01T07:34:40.000Z","size":252,"stargazers_count":43,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T06:51:33.859Z","etag":null,"topics":["databaseless","elixir-lang","elm-lang","password-less-authentication","phoenix-framework"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bigardone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-03T10:52:53.000Z","updated_at":"2023-08-23T04:59:30.000Z","dependencies_parsed_at":"2023-04-14T01:47:29.118Z","dependency_job_id":null,"html_url":"https://github.com/bigardone/passwordless-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigardone%2Fpasswordless-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigardone%2Fpasswordless-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigardone%2Fpasswordless-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigardone%2Fpasswordless-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigardone","download_url":"https://codeload.github.com/bigardone/passwordless-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248162980,"owners_count":21057849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["databaseless","elixir-lang","elm-lang","password-less-authentication","phoenix-framework"],"created_at":"2024-09-24T22:44:56.786Z","updated_at":"2025-04-10T05:31:12.203Z","avatar_url":"https://github.com/bigardone.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PasswordlessAuth\nThis is the demo project for a new series I'll be writing on how to authenticate Phoenix socket connections with a password-less and database-less approach, inspired by Slack's magic link authentication.\n\n## Scenario\nHave you ever found yourself adding HTTP basic authentication to a small admin panel of some sort? Have you ended up changing it for something way more complicated? How many times did this change leave you with a feeling of unnecessary over-engineering? This small experiment relies on OTP, Phoenix Token, and email sending, to build up a secure and straightforward authentication system for a Phoenix socket connection, used by a small Elm SPA application.\n\n## Why password-less and database-less?\nBecause, why not? I wanted it to be as simple as possible, taking advantage of some of the features which make Elixir and Phoenix so awesome.\n\n## Tutorial\n1.  [Project setup and the initial functionality for storing and verifying authentication tokens](http://codeloveandboards.com/blog/2018/06/09/elixir-and-phoenix-basic-passwordless-and-databaseless-authentication-pt-1)\n2.  [Sending authentication link emails and the user socket connection](http://codeloveandboards.com/blog/2018/06/20/elixir-and-phoenix-basic-passwordless-and-databaseless-authentication-pt-2)\n3.  [Setting up webpack as our asset bundler and the Elm single-page application](http://codeloveandboards.com/blog/2018/09/01/elixir-and-phoenix-basic-passwordless-and-databaseless-authentication-pt-3)\n\n## Running the project\nTo start your Phoenix server:\n\n  * Install dependencies with `mix deps.get`\n  * Install Elm dependencies with `cd apps/passwordless_auth_web/assets/elm \u0026\u0026 elm package install`\n  * Install Node.js dependencies with `cd apps/passwordless_auth_web/assets \u0026\u0026 npm install`\n  * Start Phoenix endpoint with `mix phx.server`\n\nNow you can visit [`localhost:4000`](http://localhost:4000) from your browser.\n\n## Final result\n![Final result](https://monosnap.com/image/5VUT424b4Hu9ITi8r1SGae7HQleCPT.png)\n\nBeautiful icons by https://icons8.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigardone%2Fpasswordless-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigardone%2Fpasswordless-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigardone%2Fpasswordless-auth/lists"}