{"_id":"desk-multipass","_rev":"29-6d48a34d44e8127fe2a9ecc0574dba20","name":"desk-multipass","time":{"modified":"2022-06-15T01:43:46.682Z","created":"2014-04-04T21:20:33.954Z","0.0.1":"2014-04-04T21:38:29.500Z","0.0.2":"2014-04-04T21:47:25.577Z","0.0.3":"2014-04-04T21:49:22.507Z","0.0.4":"2014-04-04T21:51:48.162Z","0.0.5":"2014-04-08T17:05:33.947Z","0.0.6":"2014-05-27T21:53:38.171Z"},"maintainers":[{"name":"ahn","email":"alex.ahn@newscred.com"}],"dist-tags":{"latest":"0.0.6"},"description":"Desk.com Multipass SSO","readme":"### Desk.com Multipass SSO module\n\nSimple module for Desk.com's [Multipass SSO](http://dev.desk.com/guides/sso/).\n\n#### Install\n\n    npm install desk-multipass\n\n#### Usage (with express)\n\n```js\nvar url = require('url');\nvar multipass = new require('desk-multipass')(SITEKEY, APIKEY);\n\napp.get('/desk', function (req, res, next) {\n  // check if user is logged in\n  multipass.create({\n    uid: '1',\n    expires: new Date(new Date().getTime() + (1000 * 60)),\n    customer_email: 'alex.ahn@test.com',\n    customer_name: 'Alex Ahn'\n  }, function (err, hash, signature) {\n    var multipassUrlObj, multipassUrl;\n    if (err) return next(err);\n    multipassUrlObj = {\n      protocol: 'http',\n      host: 'test.desk.com',\n      pathname: '/customer/authentication/multipass/callback',\n      query: {\n        multipass: hash,\n        signature: signature\n      }\n    };\n    multipassUrl = url.format(multipassUrlObj);\n    res.redirect(multipassUrl);\n  });\n});\n\n```\n","versions":{"0.0.1":{"name":"desk-multipass","version":"0.0.1","description":"Desk.com Multipass SSO","main":"index.js","repository":{"type":"git","url":"git://github.com/alexahn/desk-multipass.git"},"author":{"name":"Alex Ahn","email":"alex.ahn@newscred.com"},"license":"MIT","bugs":{"url":"https://github.com/alexahn/desk-multipass/issues"},"homepage":"https://github.com/alexahn/desk-multipass","_id":"desk-multipass@0.0.1","dist":{"shasum":"d29f7fca43a39185f1381aefd78bb088b8f984bb","tarball":"https://registry.npmjs.org/desk-multipass/-/desk-multipass-0.0.1.tgz","integrity":"sha512-3Z9HFTLW3dOZb8FlJAe2NduCCRnJH5Oy4DtpIM/YSk2wLy/7NFB4wZG/DErP5BhVHtAk3Do6oQnVBcVrq7ljAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHDuOT4K4UF4PYvIJazzX8kIfd0cjAYsV1OLHw7gKPXZAiAop1B0IgKdmCFOHU/RmbkdvScdst04sxJY69Aefjuulg=="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"ahn","email":"alex.ahn@newscred.com"},"maintainers":[{"name":"ahn","email":"alex.ahn@newscred.com"}]},"0.0.2":{"name":"desk-multipass","version":"0.0.2","description":"Desk.com Multipass SSO","main":"index.js","repository":{"type":"git","url":"git://github.com/alexahn/desk-multipass.git"},"author":{"name":"Alex Ahn","email":"alex.ahn@newscred.com"},"license":"MIT","bugs":{"url":"https://github.com/alexahn/desk-multipass/issues"},"homepage":"https://github.com/alexahn/desk-multipass","_id":"desk-multipass@0.0.2","dist":{"shasum":"8246ff94d992ef3a791f9432209a9e0c1d14d94c","tarball":"https://registry.npmjs.org/desk-multipass/-/desk-multipass-0.0.2.tgz","integrity":"sha512-oVOqZa3lbofFTSDYC2yIvZ9jGPMsEEaToB+C1ixY1iuYB1qWlrHD/LyrIzJhXd5i/oU51GyAySmiH1MXiACaJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWECantWGNaYwiMb14BS+y/Kq0b6nMCbNxj9O1gWBqCQIhAJiCH8lODn0ZstqOdpEWl5Z6tHZREfsMz39PSU/B2gOA"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"ahn","email":"alex.ahn@newscred.com"},"maintainers":[{"name":"ahn","email":"alex.ahn@newscred.com"}]},"0.0.3":{"name":"desk-multipass","version":"0.0.3","description":"Desk.com Multipass SSO","main":"index.js","repository":{"type":"git","url":"git://github.com/alexahn/desk-multipass.git"},"author":{"name":"Alex Ahn","email":"alex.ahn@newscred.com"},"license":"MIT","bugs":{"url":"https://github.com/alexahn/desk-multipass/issues"},"homepage":"https://github.com/alexahn/desk-multipass","_id":"desk-multipass@0.0.3","dist":{"shasum":"403110f562356f84342cbf127a497c598d1695a3","tarball":"https://registry.npmjs.org/desk-multipass/-/desk-multipass-0.0.3.tgz","integrity":"sha512-pQkN3qdAq5QMRJBHRzN040llqR3A7Jdt64mtQAx1mDVuynaO74wt4SQJKGqkBNg8XKDYjzdFywnaV7njIkwVWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFgS8yaBFoBMWIXtfl2J8xH8HAg+ft4ncjANohVZnWpgAiA6EFMFm0AsuQfuEPxVrolOkAZ2FeWnfPSnriLWKs69rg=="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"ahn","email":"alex.ahn@newscred.com"},"maintainers":[{"name":"ahn","email":"alex.ahn@newscred.com"}]},"0.0.4":{"name":"desk-multipass","version":"0.0.4","description":"Desk.com Multipass SSO","main":"index.js","repository":{"type":"git","url":"git://github.com/alexahn/desk-multipass.git"},"author":{"name":"Alex Ahn","email":"alex.ahn@newscred.com"},"license":"MIT","bugs":{"url":"https://github.com/alexahn/desk-multipass/issues"},"homepage":"https://github.com/alexahn/desk-multipass","_id":"desk-multipass@0.0.4","dist":{"shasum":"74b74f3dfb0ba08e682d86a174a967d36a961f2d","tarball":"https://registry.npmjs.org/desk-multipass/-/desk-multipass-0.0.4.tgz","integrity":"sha512-X2EU5ubXWixzUKYPp4yuLMYPXu9StXCsIKe6nEpcpdcnS70uscd7Ntxpaw1KHDCQDwGoGVE5T1n4K8uYS1Ahdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcFHX3f1uEzB8IsDK+Z4LzXRfik+9/WRMluyylhlKe4gIgU0K+kJbhUd95WbzYd7r3V12SyPSdIXKPCCOqCraNnWo="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"ahn","email":"alex.ahn@newscred.com"},"maintainers":[{"name":"ahn","email":"alex.ahn@newscred.com"}]},"0.0.5":{"name":"desk-multipass","version":"0.0.5","description":"Desk.com Multipass SSO","main":"index.js","repository":{"type":"git","url":"git://github.com/alexahn/desk-multipass.git"},"author":{"name":"Alex Ahn","email":"alex.ahn@newscred.com"},"license":"MIT","bugs":{"url":"https://github.com/alexahn/desk-multipass/issues"},"homepage":"https://github.com/alexahn/desk-multipass","_id":"desk-multipass@0.0.5","dist":{"shasum":"5adb0efdd3440873718f6ad1435e2dc73a646483","tarball":"https://registry.npmjs.org/desk-multipass/-/desk-multipass-0.0.5.tgz","integrity":"sha512-WF7Y5BbaeuaqoBTwwmu+K2aho4DOW+B4lQGR/1Mu+Lmn8a1m+mrAlUoy/up6YObk1d5Aw8/subMLQp2vJSq3BA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwuHDpVRUtRlf1ezKyyfsQM9IiI5DAVtyDRIa7NfEbhQIhAP3tGP+Ti0RNiVY7dkIccT4m484nzEJJ4oISDtnFvUCx"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"ahn","email":"alex.ahn@newscred.com"},"maintainers":[{"name":"ahn","email":"alex.ahn@newscred.com"}]},"0.0.6":{"name":"desk-multipass","version":"0.0.6","description":"Desk.com Multipass SSO","main":"index.js","repository":{"type":"git","url":"git://github.com/alexahn/desk-multipass.git"},"author":{"name":"Alex Ahn","email":"alex.ahn@newscred.com"},"license":"MIT","bugs":{"url":"https://github.com/alexahn/desk-multipass/issues"},"homepage":"https://github.com/alexahn/desk-multipass","_id":"desk-multipass@0.0.6","_shasum":"f551c9505734819804235a0f5d6071591afd4af3","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"ahn","email":"alex.ahn@newscred.com"},"maintainers":[{"name":"ahn","email":"alex.ahn@newscred.com"}],"dist":{"shasum":"f551c9505734819804235a0f5d6071591afd4af3","tarball":"https://registry.npmjs.org/desk-multipass/-/desk-multipass-0.0.6.tgz","integrity":"sha512-oUQAEGMeYBXhCdS9ZUxAdjdmJEYyJrVjTsu9acEy3xwSfCnLlzOsJhKAFZUyxUDp77z9mD306iLBM+ZoqLsqMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkQ8TP4Q4gZ2a4NI2WM/AOmeIaCaQ5ZNlQX/QsFDHTSwIgDEbyLJcGnhG6Kkwm397AWLEuG4KLExyipEeQ4oaXsck="}]}}},"homepage":"https://github.com/alexahn/desk-multipass","repository":{"type":"git","url":"git://github.com/alexahn/desk-multipass.git"},"author":{"name":"Alex Ahn","email":"alex.ahn@newscred.com"},"bugs":{"url":"https://github.com/alexahn/desk-multipass/issues"},"license":"MIT","readmeFilename":"README.md","users":{"shekharreddy":true}}