85 lines
4.2 KiB
JSON
85 lines
4.2 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "basic-auth-connect@1.0.0",
|
|
"scope": null,
|
|
"escapedName": "basic-auth-connect",
|
|
"name": "basic-auth-connect",
|
|
"rawSpec": "1.0.0",
|
|
"spec": "1.0.0",
|
|
"type": "version"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/connect"
|
|
]
|
|
],
|
|
"_from": "basic-auth-connect@1.0.0",
|
|
"_id": "basic-auth-connect@1.0.0",
|
|
"_inCache": true,
|
|
"_location": "/basic-auth-connect",
|
|
"_npmUser": {
|
|
"name": "jongleberry",
|
|
"email": "jonathanrichardong@gmail.com"
|
|
},
|
|
"_npmVersion": "1.3.21",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "basic-auth-connect@1.0.0",
|
|
"scope": null,
|
|
"escapedName": "basic-auth-connect",
|
|
"name": "basic-auth-connect",
|
|
"rawSpec": "1.0.0",
|
|
"spec": "1.0.0",
|
|
"type": "version"
|
|
},
|
|
"_requiredBy": [
|
|
"/connect"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/basic-auth-connect/-/basic-auth-connect-1.0.0.tgz",
|
|
"_shasum": "fdb0b43962ca7b40456a7c2bb48fe173da2d2122",
|
|
"_shrinkwrap": null,
|
|
"_spec": "basic-auth-connect@1.0.0",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/connect",
|
|
"author": {
|
|
"name": "Jonathan Ong",
|
|
"email": "me@jongleberry.com",
|
|
"url": "http://jongleberry.com"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/expressjs/basic-auth-connect/issues"
|
|
},
|
|
"dependencies": {},
|
|
"description": "Basic auth middleware for node and connect",
|
|
"devDependencies": {
|
|
"connect": "*",
|
|
"mocha": "*",
|
|
"should": "*",
|
|
"supertest": "*"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "fdb0b43962ca7b40456a7c2bb48fe173da2d2122",
|
|
"tarball": "https://registry.npmjs.org/basic-auth-connect/-/basic-auth-connect-1.0.0.tgz"
|
|
},
|
|
"homepage": "https://github.com/expressjs/basic-auth-connect#readme",
|
|
"license": "MIT",
|
|
"maintainers": [
|
|
{
|
|
"name": "jongleberry",
|
|
"email": "jonathanrichardong@gmail.com"
|
|
}
|
|
],
|
|
"name": "basic-auth-connect",
|
|
"optionalDependencies": {},
|
|
"readme": "# simgr - Simple Image Resizer [![Build Status](https://travis-ci.org/expressjs/basic-auth-connect.png)](https://travis-ci.org/expressjs/basic-auth-connect)\n\nConnect's Basic Auth middleware in its own module. This module is considered deprecated. You should instead create your own middleware with [basic-auth](https://github.com/visionmedia/node-basic-auth).\n\n## API\n\n```js\nvar basicAuth = require('basic-auth-connect');\n```\n\nSorry, couldn't think of a more clever name.\n\nSimple username and password\n\n```js\nconnect()\n.use(basicAuth('username', 'password'));\n```\n\nCallback verification\n\n```js\nconnect()\n.use(basicAuth(function(user, pass){\n return 'tj' == user && 'wahoo' == pass;\n}))\n```\n\nAsync callback verification, accepting `fn(err, user)`.\n\n```\nconnect()\n.use(basicAuth(function(user, pass, fn){\n User.authenticate({ user: user, pass: pass }, fn);\n}))\n```\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2013 Jonathan Ong me@jongleberry.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/expressjs/basic-auth-connect.git"
|
|
},
|
|
"scripts": {
|
|
"test": "make test"
|
|
},
|
|
"version": "1.0.0"
|
|
}
|