0.2.2 • Published 2 years ago

virtual-u2f v0.2.2

Weekly downloads
74
License
MIT
Repository
github
Last release
2 years ago

Virtual U2F Token

A virtual U2F token for automated testing of U2F enabled applications.

Based on mplatt/virtual-u2f, updated to comply with the U2F Javascript Spec.

Build Status Dependencies

Check it out on npm

Usage

Registration

var VirtualToken = require('virtual-u2f');

// Generate Registration request
...

// Handle registration request
token.HandleRegisterRequest(request)
.then(function(response) {
    // Finalise registration
    ...
}, function(error) {
    // Handle error
    ...
});

Signing / Authentication

var VirtualToken = require('virtual-u2f');

// Generate Signing request
...

// Handle registration request
token.HandleSignatureRequest(request)
.then(function(response) {
    // Finalise Signing
    ...
}, function(error) {
    // Handle error
    ...
});

For a worked example running against ryankurte/node-u2f (my fork of ashtuchkin/u2f), check out test.js.

There is also a simple command line application that accepts registration and signing challenges and outputs responses (both in JSON), in case you need to test non-javascript based applications.


If you have any questions, comments, or suggestions, feel free to open an issue or a pull request.

0.2.1

2 years ago

0.2.2

2 years ago

0.2.0

6 years ago

0.1.2

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.2

8 years ago