Giter VIP home page Giter VIP logo

webauthn's Introduction

Simple WebAuthn demo

Implementation of WebAuthn API written in React and Express. Demo that shows the future of passwordless authentication. Users register with a username and one of the supported authenticators. Login process requires matching username and authenticator pair.

Demo link:

https://web-auth-n-demo.herokuapp.com/

Installation

Requirements

  • Node.js
  • MongoDB (local or remote cluster)

Setup

  • Clone this repo git clone https://github.com/tonijukica/webauthn.git
  • Run npm install in cloned repo.
  • Configure environment variables in .env file, use .env.example as guide. MongoDB connection is required for the app to run. If the app is run locally then it's not necessary to provide RP Id(Relaying Party ID) as it defaults to localhost, else you must provide RP Id to match your origin e.g.RP_ID=https://web-auth-n-demo.herokuapp.com/

Launch

Development

  • Client: npm run dev:client
  • Server npm run dev:server

Production

  • First run npm run build
  • Then run npm start to start the server.

Notes

Supported Attestation formats

  • Packed
  • Fido-U2F
  • Android SafetyNet
  • Android Key store (Needs testing)

License

  • MIT

Implemented following Ackermann Yuriy examples.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.