Skip to content

Elixir / Phoenix demo of Web Push Notification used for user authentication

Notifications You must be signed in to change notification settings

tanguilp/mob_push_auth

Repository files navigation

MobPushAuth

This is a demo Phoenix app that shows how to use Web Push notification to authenticate users.

The flow involves 2 steps:

  1. Registration: on a computer, a user opens a QR code on his/her phone. The user accepts push notifications to be sent on his/her phone
  2. Authentication: on a computer, the user enters his/her login. A web push notification is sent to his/her phone with a link. The link opens a web page asking for authentication confirmation. Upon acceptance, the user is authenticated on the computer

Demo video

This demo is deployed on https://mob-push-auth.onrender.com/. This is a free tiers and it can take a few minutes to start.

This is not ready for production use. Security model is not documented. That's just about sharing ideas :)

Support

As of February, 2023:

  • doesn't work on iOS (support for Web Push Notifications on iOS planned for 2023)
  • works on Android with Chrome
  • doesn't work with Android and Firefox or Mi Browser

About

Elixir / Phoenix demo of Web Push Notification used for user authentication

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published