desk

Desk.com Multipass SSO

npm install desk
10 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