Skip to content

A wrapper for writing / testing FIDO 2.0 CTAP authenticators

Notifications You must be signed in to change notification settings

apowers313/fido2-ctap-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fido2-authenticator

A utility for communicating with FIDO 2.0 authenticators using the Client to Authenticator Protocol (CTAP)

Install

npm install fido2-authenticator

Command Line

API

The Authenticator object has the following methods:

  • authenticatorMakeCredential
  • authenticatorGetAssertion (currently not implemented)
  • authenticatorCancel (currently not implemented)
  • authenticatorGetInfo (currently not implemented)
  • sendMessage
  • receiveMessage

Auth

The auth constructor takes the form: new Auth(sendFunction, receiveFunction) where sendFunction and receiveFunction are called when the Auth needs to send / receive data to / from the underlying implementation.

function sendFunction (cbor, cb);
function receiveFunction (cb);
// cbor = cbor encoded message
// cb = callback function for when sending is complete

Notes

Currently incomplete:

  • Doesn't support rawAttestation parameter in makeCredential response
  • Doesn't support getAttestation
  • Doesn't support cancel
  • Doesn't support getInfo

About

A wrapper for writing / testing FIDO 2.0 CTAP authenticators

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published