This is a web application to do demonstration of the passwordless and 2FA authentication using FIDO2 on clean-starter framework.
- NodeJS 8.15+ installed
- External hardware-based security device such as Yubikey
- Start Clean-starter project, working a back-end service, aka playing relying party role. Setup guideline can be found at here.
- On clean starter, configure authentication options on lib/infrastructure/config/authnConfig.json
{ "enablePasswordless": true, "enable2FAWithFido2": true }
- Start webauthn-sample
npm start
There are 2 demo pages as follows
- 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.
- 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.
- Thanks to Wallix, this project used his library to call the WebAuthN APIs