{"_id":"dialback-client","_rev":"19-e44332b999668d112e8484d6e830d5a5","name":"dialback-client","description":"dialback-client ===============","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"dialback-client","homepage":"http://github.com/e14n/dialback-client","version":"0.1.0","author":{"name":"Evan Prodromou","email":"evan@e14n.com"},"devDependencies":{"vows":"0.6.x","webfinger":"0.1.x"},"dependencies":{"express":"2.5.x","underscore":"1.4.x","databank":"0.15.x","step":"0.0.x"},"scripts":{"test":"vows test/*-test.js"},"repository":{"type":"git","url":"git://github.com/e14n/dialback-client.git"},"keywords":["dialback","authorization","authentication","http"],"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"engine":{"node":"0.8.x"},"main":"./lib/dialbackclient.js","directories":{"lib":"./lib/"},"_id":"dialback-client@0.1.0","description":"dialback-client ===============","dist":{"shasum":"b254fe13a449059d052214125df5244d26ebc96b","tarball":"https://registry.npmjs.org/dialback-client/-/dialback-client-0.1.0.tgz","integrity":"sha512-ZBwopYhkxLUB2ojQ/hj7aAF4fZfhzq+gakmq8XLpVDM1KbV/91UhUD66haZiJYIn9MmX4K/AJUErnerGHuWYoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF/N2y2fPR33ayB8ALTAyHYtpxrHHsGbc6ZghESloU3IAiA/CDqUo2wPUDAvlEkzg4Kgxukc2qkY176pWOOIdSpWRQ=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"evanp","email":"evan@status.net"},"maintainers":[{"name":"evanp","email":"evan@status.net"}]},"0.1.1":{"name":"dialback-client","homepage":"http://github.com/e14n/dialback-client","version":"0.1.1","author":{"name":"Evan Prodromou","email":"evan@e14n.com"},"devDependencies":{"vows":"0.6.x","webfinger":"0.1.x"},"dependencies":{"express":"2.5.x","underscore":"1.4.x","databank":"0.15.x","step":"0.0.x"},"scripts":{"test":"vows test/*-test.js"},"repository":{"type":"git","url":"git://github.com/e14n/dialback-client.git"},"keywords":["dialback","authorization","authentication","http"],"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"engine":{"node":"0.8.x"},"main":"./lib/dialbackclient.js","directories":{"lib":"./lib/"},"_id":"dialback-client@0.1.1","description":"dialback-client ===============","dist":{"shasum":"172dcdba21ac5567a78323fbc63d7ee61a66bc0a","tarball":"https://registry.npmjs.org/dialback-client/-/dialback-client-0.1.1.tgz","integrity":"sha512-UlQSIbTFJRSyKSPo6qb+zPrSf79cwa80ceB01xVVr68bHTqkJvBG/KXXBGawX4dLjvaDn8x1El8Dr8xuIJQilg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHqvZcbDOjSHFBX5dZuuqWotQCN++vJC/uDB+78lzDK3AiBpL5QkQxst6Y7ZY1xFtRTj9axiqo8b28V9g7803Lg3Hw=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"evanp","email":"evan@status.net"},"maintainers":[{"name":"evanp","email":"evan@status.net"}]},"0.1.2":{"name":"dialback-client","homepage":"http://github.com/e14n/dialback-client","version":"0.1.2","author":{"name":"Evan Prodromou","email":"evan@e14n.com"},"devDependencies":{"vows":"0.6.x","webfinger":"0.1.x"},"dependencies":{"express":"2.5.x","underscore":"1.4.x","databank":"0.15.x","step":"0.0.x"},"scripts":{"test":"vows test/*-test.js"},"repository":{"type":"git","url":"git://github.com/e14n/dialback-client.git"},"keywords":["dialback","authorization","authentication","http"],"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"engine":{"node":"0.8.x"},"main":"./lib/dialbackclient.js","directories":{"lib":"./lib/"},"_id":"dialback-client@0.1.2","description":"dialback-client ===============","dist":{"shasum":"1b6a25fa268eeb5f04c0af82e5a6bd491f18df46","tarball":"https://registry.npmjs.org/dialback-client/-/dialback-client-0.1.2.tgz","integrity":"sha512-gO7oSes/+B1TD3sobBqdKZzzgus6B/s+irtkQtkbuILMSQNZ0HDRbOdJbLfcl3AvmkxntLaEqaen16vdIkhXPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/+lcYRG4SYM1ciGWqtVGhwgtI1qEeKDrzsB2XsXFslQIhALDTTLAWJ5wglWSF2B6SpPjDE9tqj+5zanZlnmrKZaEY"}]},"_npmVersion":"1.1.69","_npmUser":{"name":"evanp","email":"evan@status.net"},"maintainers":[{"name":"evanp","email":"evan@status.net"}]},"0.1.3":{"name":"dialback-client","homepage":"http://github.com/e14n/dialback-client","version":"0.1.3","author":{"name":"Evan Prodromou","email":"evan@e14n.com"},"devDependencies":{"vows":"0.6.x","webfinger":"0.1.x"},"dependencies":{"express":"2.5.x","underscore":"1.4.x","databank":"0.15.x","step":"0.0.x"},"scripts":{"test":"vows test/*-test.js"},"repository":{"type":"git","url":"git://github.com/e14n/dialback-client.git"},"keywords":["dialback","authorization","authentication","http"],"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"engine":{"node":"0.8.x"},"main":"./lib/dialbackclient.js","directories":{"lib":"./lib/"},"_id":"dialback-client@0.1.3","description":"dialback-client ===============","dist":{"shasum":"5e42d79f13af1d2e622a710d4df07229e7713f32","tarball":"https://registry.npmjs.org/dialback-client/-/dialback-client-0.1.3.tgz","integrity":"sha512-xbmH98z3+ms7LAe12HuM7DB2EzwR7zgl3LT/TBFAkOYdttfUfmWRY51dIc5s8SoqaMQ0IBVhc90o4Eg2s4UJ0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDj4S6GtwrcSe8A5zYIW2gj35yC5PhP5bX+dlcsb7vt8AIgZrx0z7YqKJC1OLpJA7mJPVn/IWxi/MfEQ5s3yFgetDA="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"evanp","email":"evan@status.net"},"maintainers":[{"name":"evanp","email":"evan@status.net"}]},"0.1.4":{"name":"dialback-client","homepage":"http://github.com/e14n/dialback-client","version":"0.1.4","author":{"name":"Evan Prodromou","email":"evan@e14n.com"},"devDependencies":{"vows":"0.6.x","webfinger":"0.1.x"},"dependencies":{"express":"2.5.x","underscore":"1.4.x","databank":"0.16.x","step":"0.0.x"},"scripts":{"test":"vows test/*-test.js"},"repository":{"type":"git","url":"git://github.com/e14n/dialback-client.git"},"keywords":["dialback","authorization","authentication","http"],"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"engine":{"node":"0.8.x"},"main":"./lib/dialbackclient.js","directories":{"lib":"./lib/"},"_id":"dialback-client@0.1.4","description":"dialback-client ===============","dist":{"shasum":"cf104dc581e36a1bc52dcd568e0ec0be59d3117d","tarball":"https://registry.npmjs.org/dialback-client/-/dialback-client-0.1.4.tgz","integrity":"sha512-3qUIj3dR9YiA/oZBx2ZpfkPq4pWwTXWo+iP83DJ36FbROClCefhvxqmZgoWolIKgsw00DJ6X4Af9zY4hp83D9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICpLzrlzu6zy/c46AoSAZal16TYykpmBibn20AsbCrEGAiEA1Sb/P0G7J9/MJ9gySGQN2dBrolD3CQBwPKhAWroeNt4="}]},"_from":".","_npmVersion":"1.2.12","_npmUser":{"name":"evanp","email":"evan@status.net"},"maintainers":[{"name":"evanp","email":"evan@status.net"}]},"0.1.5":{"name":"dialback-client","homepage":"http://github.com/e14n/dialback-client","version":"0.1.5","author":{"name":"Evan Prodromou","email":"evan@e14n.com"},"devDependencies":{"vows":"0.6.x","webfinger":"0.1.x"},"dependencies":{"express":"2.5.x","underscore":"1.4.x","databank":"0.18.x","step":"0.0.x"},"scripts":{"test":"vows test/*-test.js"},"repository":{"type":"git","url":"git://github.com/e14n/dialback-client.git"},"keywords":["dialback","authorization","authentication","http"],"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"engine":{"node":">=0.6.x"},"main":"./lib/dialbackclient.js","directories":{"lib":"./lib/"},"_id":"dialback-client@0.1.5","description":"dialback-client ===============","dist":{"shasum":"ff37f58554ac7dca79a219ba3e6e7c5ed4cc0745","tarball":"https://registry.npmjs.org/dialback-client/-/dialback-client-0.1.5.tgz","integrity":"sha512-YbkFsef3bTZGfX1TwzZl+SbeyDUZHjLprZ0WC7QVWC4n7oXA2hxIvhfGinodP11HQOK0COiv+pvKM7g1xkUD7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF3QXMiGur7Yccb3u9mKFqlXUv8EPIQ0r+9ZGVJZ/7d4AiEA08pl8fr03jFv0b2Oh+QaNSsARH/Z//8jcEF/pYZM9ZM="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"evanp","email":"evan@e14n.com"},"maintainers":[{"name":"evanp","email":"evan@status.net"}]},"0.2.0":{"name":"dialback-client","homepage":"http://github.com/e14n/dialback-client","version":"0.2.0","author":{"name":"Evan Prodromou","email":"evan@e14n.com"},"devDependencies":{"vows":"0.6.x","webfinger":"0.4.x","express":"2.5.x"},"dependencies":{"underscore":"1.5.x","databank":"0.19.x","step":"0.0.x"},"scripts":{"test":"vows test/*-test.js"},"repository":{"type":"git","url":"git://github.com/e14n/dialback-client.git"},"keywords":["dialback","authorization","authentication","http"],"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"engine":{"node":"0.8.x"},"main":"./lib/dialbackclient.js","directories":{"lib":"./lib/"},"_id":"dialback-client@0.2.0","description":"dialback-client ===============","dist":{"shasum":"051806a88a6cc18ffb25adf13eda232e354ebcb6","tarball":"https://registry.npmjs.org/dialback-client/-/dialback-client-0.2.0.tgz","integrity":"sha512-Pac+OTAKX0byi2kkL5gUh/GrwKKNWbEhmO44LPlytViJgD3KQ5opIX7X3oKOaygcmkVbtNxHhj2lrgR66CFSZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICE3Jzk4xOaVKUuvX0ukrDuPG3dbovevYCufUsszF/FeAiEA8Swq/0wN2LG2HY1ah4HAqf02tbD2TArKeECbne2+xOE="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"evanp","email":"evan@e14n.com"},"maintainers":[{"name":"evanp","email":"evan@status.net"}]}},"readme":"dialback-client\n===============\n\nThis is a client library for implementing the draft Dialback\nauthentication mechanism in NodeJS apps.\n\nhttps://datatracker.ietf.org/doc/draft-prodromou-dialback/\n\nLicense\n-------\n\nCopyright 2012-2013, StatusNet Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\nSetup\n-----\n\nThe library depends on the\n[databank](https://github.com/evanp/databank) NoSQL abstraction layer\nand [connect](http://www.senchalabs.org/connect/) or\n[express](http://expressjs.org/).\n\nTo set it up, do something like this:\n\n    var express = require(\"express\"),\n        Databank = require(\"databank\").Databank,\n        DialbackClient = require(\"dialback-client\");\n        \n    var db = Databank.get(\"mongo\", {host: \"mymongo.example\", dbname: \"dialback\"}),\n        app = express.createServer(),\n        client;\n\n    // Used for dialback endpoint\n        \n    app.use(express.bodyParser());    \n\n    client = new DialbackClient({\n        hostname: \"myhost.example\",\n        bank: db,\n        app: app\n    });\n\n    db.connect({}, function(err) {\n        app.listen(80, \"myhost.example\");\n    });\n       \nThe constructor takes the following named arguments:\n\n* `app`: the connect or express app. Required. The client adds its endpoint to the app.\n* `hostname`: hostname to use. Required.\n* `bank`: databank to store dialback request info in.\n* `url`: relative URL for the endpoint. Defaults to \"/dialback\" but can be anything.\n* `userAgent`: the User-Agent string to send when making requests.\n  Defaults to something identifying this client.\n* `cleanup`: frequency of cleanup. By default, once per minute.\n\nUsage\n-----\n\nTo make dialback requests, use the `post` method of the client.\n\n* `post(endpoint, id, body, contentType, callback)` Posts the `body`\n  with MIME type `contentType` to `endpoint` as `id`. `callback` gets\n  three results: an error, the HTTP client result from the request,\n  and the result body.\n\nThe client is automatically hung on the `app` parameter, so you can\nusually do something like:\n\n    app.dialbackClient.post(\n        \"http://echo.example/echo\",\n        \"me@mydomain.example\",\n        \"{foo: bar}\",\n        \"application/json\", function(err, response, body) {\n        \n        res.json(body);\n        \n    });\n\n","maintainers":[{"email":"evan@e14n.com","name":"evanp"}],"time":{"modified":"2022-06-15T03:11:24.720Z","created":"2013-01-04T00:20:16.555Z","0.1.0":"2013-01-04T00:20:29.700Z","0.1.1":"2013-01-04T00:43:13.955Z","0.1.2":"2013-01-21T02:23:44.052Z","0.1.3":"2013-01-21T02:26:36.981Z","0.1.4":"2013-03-11T09:06:22.292Z","0.1.5":"2013-04-03T20:36:32.113Z","0.2.0":"2013-11-19T03:13:39.351Z"},"author":{"name":"Evan Prodromou","email":"evan@e14n.com"},"repository":{"type":"git","url":"git://github.com/e14n/dialback-client.git"},"users":{"madmamma81":true},"homepage":"http://github.com/e14n/dialback-client","keywords":["dialback","authorization","authentication","http"],"readmeFilename":"README.md"}