Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README

Yubikey Web Service Client Module for NodeJS

Validate Yubikeys via Yubico Web Services API. (http://yubico.com)

Yubikey tokens can be purchased from https://store.yubico.com/
Yubico API id and signature key can be requested from https://upgrade.yubico.com/getapikey/

Example usage:

      var yubikey = require(./yubikey.js);

      // Replace with your Yubico API Id and Key
      yubikey.apiId = 1234; // Required
      yubikey.apiKey = 'asdfasdf'; // Optional, will add HMAC-SHA-1 signature in requests and verify signature in response when set

      var otp = 'ccccccceabcrkjftthlbkgnhnugvbhidjleuddbghhnl'; // OTP generated by Yubikey

      yubikey.verify(otp, function(isValid) {
            console.log(isValid ? 'Yubikey is valid' : 'Yubikey is not valid');
      })


More Info:

    http://yubico.com
    http://code.google.com/p/yubikey-val-server-php/wiki/ValidationProtocolV20

About

NodeJS Yubikey Web Service Client Module

Resources

License

Releases

No releases published

Packages

No packages published