NodeJS Yubikey Web Service Client Module
Switch branches/tags
Nothing to show
Clone or download
Adam Baldwin
Latest commit e829f28 Nov 25, 2011

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