{"_id":"webauth","_rev":"1758983","name":"webauth","description":"Web authentication module","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"churkin","email":"alam17@mail.ru"}],"time":{"modified":"2026-11-23T08:57:10.000Z","created":"2013-09-04T13:51:08.418Z","1.1.0":"2016-11-01T10:01:53.051Z","1.0.0":"2016-10-27T10:07:26.695Z","0.1.4":"2016-10-25T08:53:16.285Z","0.1.3":"2016-06-27T11:53:47.134Z","0.1.2":"2016-06-27T11:31:03.134Z","0.1.1":"2014-09-26T06:45:07.740Z","0.1.0":"2013-09-06T08:39:02.166Z","0.0.1":"2013-09-04T13:51:08.418Z"},"users":{},"author":{"name":"Sam Decrock","url":"https://github.com/SamDecrock/"},"repository":{"type":"git","url":"git+https://github.com/churkin/webauth.git"},"versions":{"1.1.0":{"name":"webauth","description":"Web authentication module","version":"1.1.0","author":{"name":"Sam Decrock","url":"https://github.com/SamDecrock/"},"contributors":[{"name":"Churkin Andrey","url":"https://github.com/churkin"}],"engines":{"node":">= 0.10.0"},"repository":{"type":"git","url":"git+https://github.com/churkin/webauth.git"},"main":"./webauth","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"66d6a178691a65dc5dcd6d2b7b9b71cb82f50a3a","bugs":{"url":"https://github.com/churkin/webauth/issues"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["npm","module"],"license":"MIT","homepage":"https://github.com/churkin/webauth#readme","_id":"webauth@1.1.0","_shasum":"64704f6b8026986605bc3ca629952e6e26fdd100","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"churkin","email":"alam17@mail.ru"},"dist":{"shasum":"64704f6b8026986605bc3ca629952e6e26fdd100","tarball":"http://registry-npm.ywwl.com/webauth/download/webauth-1.1.0.tgz","integrity":"sha512-BwbI3vESF7eVleIU6zYPnFuzT89IRswYoJ0C6xYLDpNSUpiw7pdX0HjebyYkFYt1IuYnQvx2Y1Lx+bGKz4Zi6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTd/2bPGkZ59qT9ohm8gaz5bzI+fKabjpsKQLVeaNcfwIgQHyUwgPRKLO5o3Gwaf4ldwzkRgxutTUdYHjXBns712c="}],"size":6146,"noattachment":false,"key":"/webauth/-/webauth-1.1.0.tgz"},"maintainers":[{"name":"churkin","email":"alam17@mail.ru"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/webauth-1.1.0.tgz_1477994512557_0.47968784510158"},"publish_time":1477994513051,"_cnpm_publish_time":1477994513051},"1.0.0":{"name":"webauth","description":"Web authentication module","version":"1.0.0","author":{"name":"Sam Decrock","url":"https://github.com/SamDecrock/"},"contributors":[{"name":"Churkin Andrey","url":"https://github.com/churkin"}],"engines":{"node":">= 0.10.0"},"repository":{"type":"git","url":"git+https://github.com/churkin/webauth.git"},"main":"./webauth","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"66d6a178691a65dc5dcd6d2b7b9b71cb82f50a3a","bugs":{"url":"https://github.com/churkin/webauth/issues"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["npm","module"],"license":"MIT","homepage":"https://github.com/churkin/webauth#readme","_id":"webauth@1.0.0","_shasum":"ff141c0edec29479c904f64b2a18f3e1f1a31eb5","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"churkin","email":"alam17@mail.ru"},"dist":{"shasum":"ff141c0edec29479c904f64b2a18f3e1f1a31eb5","tarball":"http://registry-npm.ywwl.com/webauth/download/webauth-1.0.0.tgz","integrity":"sha512-JNv0IyRwpRwBpc9A1GisbAvthLUlRAeVfQThNvmZSh3rlfpiG1qv068ZVCzRNmWXuF07iGz777D3i9ZwbHzhcA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFcnLkpzV3/TnE5k5rZWiQxS6BCtGfI6cUQ6JqezRrcZAiBPK9IR3wKX7RxW/P1dg3jXg7wqnXJ0AKrBorqZUfcwGA=="}],"size":6104,"noattachment":false,"key":"/webauth/-/webauth-1.0.0.tgz"},"maintainers":[{"name":"churkin","email":"alam17@mail.ru"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/webauth-1.0.0.tgz_1477562844163_0.5075144213624299"},"publish_time":1477562846695,"_cnpm_publish_time":1477562846695},"0.1.4":{"name":"webauth","description":"Web authentication module","version":"0.1.4","author":{"name":"Sam Decrock","url":"https://github.com/SamDecrock/"},"contributors":[{"name":"Churkin Andrey","url":"https://github.com/churkin"}],"engines":{"node":">= 0.10.0"},"repository":{"type":"git","url":"git+https://github.com/churkin/webauth.git"},"main":"./webauth","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"66d6a178691a65dc5dcd6d2b7b9b71cb82f50a3a","bugs":{"url":"https://github.com/churkin/webauth/issues"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["npm","module"],"license":"MIT","homepage":"https://github.com/churkin/webauth#readme","_id":"webauth@0.1.4","_shasum":"9475ffe15b37a227c925a62366218e8aba68e755","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"churkin","email":"alam17@mail.ru"},"dist":{"shasum":"9475ffe15b37a227c925a62366218e8aba68e755","tarball":"http://registry-npm.ywwl.com/webauth/download/webauth-0.1.4.tgz","integrity":"sha512-zqAi1//viN8RmtqA5lncYO7kwKnFjhzJK1ovGROH7rit/JK0Qiqnni1AVwUkIKqYdRKyJ2bVN9NGTcpoqc3lmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAcuU0GC38riFDXPGV+fjqQkicSnDsGWMQYqdQq7ohMXAiBWkNvI9exo2CyW0VUmCpRcrAuQDJQuCSvfONcvaV8KUQ=="}],"size":6274,"noattachment":false,"key":"/webauth/-/webauth-0.1.4.tgz"},"maintainers":[{"name":"churkin","email":"alam17@mail.ru"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/webauth-0.1.4.tgz_1477385594099_0.020227425266057253"},"publish_time":1477385596285,"_cnpm_publish_time":1477385596285},"0.1.3":{"name":"webauth","description":"Web authentication module","version":"0.1.3","author":{"name":"Sam Decrock","url":"https://github.com/SamDecrock/"},"contributors":[{"name":"Churkin Andrey","email":"a.sturmfuhrer@gmail.com","url":"https://github.com/churkin"}],"engines":{"node":">= 0.10.0"},"repository":{"type":"git","url":"git+https://github.com/churkin/webauth.git"},"main":"./webauth","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"66d6a178691a65dc5dcd6d2b7b9b71cb82f50a3a","bugs":{"url":"https://github.com/churkin/webauth/issues"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["npm","module"],"license":"MIT","homepage":"https://github.com/churkin/webauth#readme","_id":"webauth@0.1.3","_shasum":"c3c9812a83c74ba89b439ba4f4ade190a9f8d595","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"churkin","email":"alam17@mail.ru"},"dist":{"shasum":"c3c9812a83c74ba89b439ba4f4ade190a9f8d595","tarball":"http://registry-npm.ywwl.com/webauth/download/webauth-0.1.3.tgz","integrity":"sha512-ozXQx//foqtDwv62J13dCuHa8oMXh0EYo/JFjodrJs/ZZ/GpZKUoEWjub4dlkgfVX/FZQcgyrA9jYkiHIqEG1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZMjqlNVvlt5z4K47/1Uq6sFUSyz92iIVmMk9yrdLrQAIgPLXWT5qhToPEp/OI+LGyNrLvLDM5tu2Q5jR4uHrv2l0="}],"size":6293,"noattachment":false,"key":"/webauth/-/webauth-0.1.3.tgz"},"maintainers":[{"name":"churkin","email":"alam17@mail.ru"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/webauth-0.1.3.tgz_1467028424575_0.2754497507121414"},"publish_time":1467028427134,"_cnpm_publish_time":1467028427134},"0.1.2":{"name":"webauth","description":"Web authentication module","version":"0.1.2","author":{"name":"Sam Decrock","url":"https://github.com/SamDecrock/"},"contributors":[{"name":"Churkin Andrey","email":"a.sturmfuhrer@gmail.com","url":"https://github.com/churkin"}],"engines":{"node":">= 0.10.0"},"repository":{"type":"git","url":"git+https://github.com/churkin/webauth.git"},"main":"./webauth","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"66d6a178691a65dc5dcd6d2b7b9b71cb82f50a3a","bugs":{"url":"https://github.com/churkin/webauth/issues"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["npm","module"],"license":"MIT","homepage":"https://github.com/churkin/webauth#readme","_id":"webauth@0.1.2","_shasum":"dbe78b81ff56a9d1a060711a99dc620123e8c7bc","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"churkin","email":"alam17@mail.ru"},"dist":{"shasum":"dbe78b81ff56a9d1a060711a99dc620123e8c7bc","tarball":"http://registry-npm.ywwl.com/webauth/download/webauth-0.1.2.tgz","integrity":"sha512-QaF/ZNV/winGKSQdmYvYt5LldLO+42bdsskHu815YqdDQWrq8IVf7jw4iSLx1N/0BFlXdg/w98hZM3/6AyhGTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkc8o5IjIy9sqyBNbBu9E6mueyG1nCPB9/6u6OBq170wIgPhPdpG8MlFaBEIe6/8Kpq/gWP+GOs5r7VttuiGEbvBc="}],"size":6187,"noattachment":false,"key":"/webauth/-/webauth-0.1.2.tgz"},"maintainers":[{"name":"churkin","email":"alam17@mail.ru"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/webauth-0.1.2.tgz_1467027060743_0.6983378147706389"},"publish_time":1467027063134,"_cnpm_publish_time":1467027063134},"0.1.1":{"name":"webauth","description":"Web authentication module","version":"0.1.1","author":{"name":"Sam Decrock","url":"https://github.com/SamDecrock/"},"contributors":[{"name":"Churkin Andrey","email":"a.sturmfuhrer@gmail.com","url":"https://github.com/churkin"}],"engines":{"node":">= 0.10.0"},"repository":{"type":"git","url":"https://github.com/churkin/webauth.git"},"main":"./webauth","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"66d6a178691a65dc5dcd6d2b7b9b71cb82f50a3a","bugs":{"url":"https://github.com/churkin/webauth/issues"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["npm","module"],"license":"MIT","_id":"webauth@0.1.1","dist":{"shasum":"d934d4cea5f7366e8450217b8d6f58a0cc6c1d12","tarball":"http://registry-npm.ywwl.com/webauth/download/webauth-0.1.1.tgz","integrity":"sha512-7JfiXh2ChQdoUCgmQNY/vWcVAjuIP8FW8AQXvHTwNB2SeHGM2GGlQ25TulXgtmvVB8kuO6appMKOddcz3G6eow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhPPmE2cGZDEfXqYXDnV2W6XCt9gLX9hch8mquVcrtBwIgNl8IpVsS135EAcvBiLFjCyyRFdft/Ja9eDNEnwg0q0w="}],"size":6256,"noattachment":false,"key":"/webauth/-/webauth-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"churkin","email":"alam17@mail.ru"},"maintainers":[{"name":"churkin","email":"alam17@mail.ru"}],"publish_time":1411713907740,"_cnpm_publish_time":1411713907740},"0.1.0":{"name":"webauth","description":"Web authentication module","version":"0.1.0","author":{"name":"Sam Decrock","url":"https://github.com/SamDecrock/"},"contributors":[{"name":"Churkin Andrey","email":"a.sturmfuhrer@gmail.com","url":"https://github.com/churkin"}],"engines":{"node":">= 0.10.0"},"repository":{"type":"git","url":"https://github.com/churkin/webauth.git"},"main":"./webauth","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"66d6a178691a65dc5dcd6d2b7b9b71cb82f50a3a","bugs":{"url":"https://github.com/churkin/webauth/issues"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["npm","module"],"license":"MIT","_id":"webauth@0.1.0","dist":{"shasum":"0cc8ed6bcd1684061ce8da35b8baf40eb558fef6","tarball":"http://registry-npm.ywwl.com/webauth/download/webauth-0.1.0.tgz","integrity":"sha512-R+1c3ofUAc5wUF/zCxGpdh9oCE2/g+G4t96QHQg2Q+Kn2X/LzAFZbx8cldKcCfw5Lpc/QxKFE4aZEKbUaO1ApA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4gsa5ZeiXcgJY0Ew90SmI3rgbnZSrAVPGC+qelinV2gIgQS2uqYvvIUAJV8bm+a++UMiXMybImutAvIi3ABqmDxQ="}],"size":6155,"noattachment":false,"key":"/webauth/-/webauth-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"churkin","email":"alam17@mail.ru"},"maintainers":[{"name":"churkin","email":"alam17@mail.ru"}],"publish_time":1378456742166,"_cnpm_publish_time":1378456742166},"0.0.1":{"name":"webauth","description":"Web authentication module","version":"0.0.1","author":{"name":"Sam Decrock","url":"https://github.com/SamDecrock/"},"contributors":[{"name":"Churkin Andrey","email":"a.sturmfuhrer@gmail.com","url":"https://github.com/churkin"}],"engines":{"node":">= 0.10.0"},"repository":{"type":"git","url":"https://github.com/churkin/webauth.git"},"main":"./webauth","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"66d6a178691a65dc5dcd6d2b7b9b71cb82f50a3a","bugs":{"url":"https://github.com/churkin/webauth/issues"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["npm","module"],"license":"BSD","_id":"webauth@0.0.1","dist":{"shasum":"94bd99f18a4dfa62477fd75ab92a468b198fb468","tarball":"http://registry-npm.ywwl.com/webauth/download/webauth-0.0.1.tgz","integrity":"sha512-2aBWyLbhTQ0Qp9KAHfZ5/UDWC5si76S+ZhDEfDmrnyykCwpkNIsZ9z2F1qJUvUT/ev98OfjZS2yRGVQKs2Mqww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaailXq1BQUUXbw8r5d51dDs7zxwFH/Dwr1rQ43ePkGAIgI1GPOkvuJHsxSUolzFImbUOThO6iwmKFn9uwN82s4NE="}],"size":4827,"noattachment":false,"key":"/webauth/-/webauth-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"churkin","email":"alam17@mail.ru"},"maintainers":[{"name":"churkin","email":"alam17@mail.ru"}],"publish_time":1378302668418,"_cnpm_publish_time":1378302668418}},"readme":"# webauth\r\n\r\nThe Node.js module implements the main mechanisms of web authentication.\r\nAt the moment webauth supports the following types of authentication:\r\n  * NTLM (The implementation of this type uses code written by [SamDecrock](https://github.com/SamDecrock) ([node-http-ntlm](https://github.com/SamDecrock/node-http-ntlm))\r\n  * Basic\r\n\r\n## How to install\r\n\r\nThis project is a Node.js module that you can add to your application via the `npm` packet manager:\r\n\r\n  `npm install webauth`\r\n\r\n## How to use\r\n\r\nTo authenticate the request to the server, use the `auth` method:\r\n\r\n`auth(reqOptions, credentials, callback, [isHttps=false], [res], [method])`\r\n\r\n  * `reqOptions` - The request options object uses a signature identical to the [Node.js http/https request options](http://nodejs.org/api/http.html#http_http_request_options_callback);\r\n  * `credentials` - The object to which authentication parameters are passed:\r\n\r\n  ````\r\n  {\r\n      username : 'Churkin.Andrey',  // required field \r\n      password : 'myPass$1',        // required field\r\n      domain : 'CORP',              // is used in the NTLM auth\r\n      workstation: 'CHURKIN-LINUX'  // is used in the NTLM auth\r\n  }\r\n  ````\r\n\r\n  * `callback` - The function that will be called after the authentication;\r\n  * `isHttps` - Set `true` to use https protocol (`false` by default);\r\n  * `res` - An optional parameter that you need to pass to the method if you have already received a response from the server with the 401 error;\r\n  * `method` - The authentication type to be used. Possible values are: `NTLM`, `Basic`. If this value is not specified, it will be automatically selected based on the following priorities:\r\n      * NTLM\r\n      * Basic\r\n\r\n## Example\r\n\r\n````\r\nvar webauth = require('webauth');\r\n\r\nvar reqOptions = {\r\n\t\thost: 'localhost',\r\n\t\theaders: {\r\n\t\t\t'accept-encoding' : 'gzip,deflate,sdch'\r\n\t\t}\r\n\t},\r\n\tcredentials = {\r\n\t\tusername: 'Churkin.Andrey',\r\n\t\tpassword: 'myPass$1',\r\n\t\tdomain: 'CORP',\r\n\t\tworkstation: 'CHURKIN-LINUX'\r\n\t};\r\n\r\nwebauth.auth(reqOptions, credentials, function(res) {\r\n\tconsole.log(res.statusCode);\r\n});\r\n````\r\n\r\n","_attachments":{},"homepage":"https://github.com/churkin/webauth#readme","bugs":{"url":"https://github.com/churkin/webauth/issues"},"license":"MIT"}