desk

Desk.com Multipass SSO

npm install desk
3 downloads in the last week
11 downloads in the last month

Desk.com Multipass SSO module

Production ready node module for desk.com's multipass SSO.

Install

npm install desk

Usage

var nodeDesk = require('desk');
var moment = require('moment');

var desk = nodeDesk.createDesk('mycompany', 'u7413hd31a...');

desk.uid('12345')
  .expires(moment().add('m', 5).toDate())
  .customer_email('test@test.com')
  .customer_name('test')
  .end(function(err, multipass, signature) {
    console.log('https://mycompany.desk.com/customer/authentication/multipass/callback?multipass='
      + multipass + '&signature=' + signature);
  });
npm loves you