Desk.com Multipass SSO nodejs module
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.js
package.json

README.md

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);
  });