Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.56 KB

README.md

File metadata and controls

34 lines (23 loc) · 1.56 KB

WebAuthN sample

This is a web application to do demonstration of the passwordless and 2FA authentication using FIDO2 on clean-starter framework.

Requirements

Setup

  1. Start Clean-starter project, working a back-end service, aka playing relying party role. Setup guideline can be found at here.
  2. On clean starter, configure authentication options on lib/infrastructure/config/authnConfig.json
    {
    "enablePasswordless": true,
    "enable2FAWithFido2": true
    }
  3. Start webauthn-sample npm start

Demonstrations

There are 2 demo pages as follows

  1. passwordless-demo: This authentication is to demonstrate that users can be authenticated without UPN. To enable this option, setting "enablePasswordless" must be set to True.
  2. 2fa-demo: This authentication is to demonstrate that users will be authenticated with an external authenticator right after being authenticated with UPN credentials. To enable this option, setting "enable2FAWithFido2" must be set to True.

References

  1. Thanks to Wallix, this project used his library to call the WebAuthN APIs