Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

virtual-u2f

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

virtual-u2f

Virtual U2F token for automated testing of U2F/Fido APIs

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10K
increased by71.88%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 06 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc