aboutsummaryrefslogtreecommitdiff
path: root/node_modules/passport
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/passport')
-rw-r--r--node_modules/passport/node_modules/passport-strategy/.jshintrc20
-rw-r--r--node_modules/passport/node_modules/passport-strategy/.travis.yml15
-rw-r--r--node_modules/passport/node_modules/passport-strategy/LICENSE20
-rw-r--r--node_modules/passport/node_modules/passport-strategy/README.md61
-rw-r--r--node_modules/passport/node_modules/passport-strategy/lib/index.js15
-rw-r--r--node_modules/passport/node_modules/passport-strategy/lib/strategy.js28
-rw-r--r--node_modules/passport/node_modules/passport-strategy/package.json72
-rw-r--r--node_modules/passport/node_modules/pause/.npmignore4
-rw-r--r--node_modules/passport/node_modules/pause/History.md5
-rw-r--r--node_modules/passport/node_modules/pause/Makefile7
-rw-r--r--node_modules/passport/node_modules/pause/Readme.md29
-rw-r--r--node_modules/passport/node_modules/pause/index.js29
-rw-r--r--node_modules/passport/node_modules/pause/package.json32
-rw-r--r--node_modules/passport/package.json107
14 files changed, 378 insertions, 66 deletions
diff --git a/node_modules/passport/node_modules/passport-strategy/.jshintrc b/node_modules/passport/node_modules/passport-strategy/.jshintrc
new file mode 100644
index 0000000..a07354b
--- /dev/null
+++ b/node_modules/passport/node_modules/passport-strategy/.jshintrc
@@ -0,0 +1,20 @@
+{
+ "node": true,
+
+ "bitwise": true,
+ "camelcase": true,
+ "curly": true,
+ "forin": true,
+ "immed": true,
+ "latedef": true,
+ "newcap": true,
+ "noarg": true,
+ "noempty": true,
+ "nonew": true,
+ "quotmark": "single",
+ "undef": true,
+ "unused": true,
+ "trailing": true,
+
+ "laxcomma": true
+}
diff --git a/node_modules/passport/node_modules/passport-strategy/.travis.yml b/node_modules/passport/node_modules/passport-strategy/.travis.yml
new file mode 100644
index 0000000..45f8624
--- /dev/null
+++ b/node_modules/passport/node_modules/passport-strategy/.travis.yml
@@ -0,0 +1,15 @@
+language: "node_js"
+node_js:
+ - "0.4"
+ - "0.6"
+ - "0.8"
+ - "0.10"
+
+before_install:
+ - "npm install istanbul -g"
+ - "npm install coveralls -g"
+
+script: "make ci-travis"
+
+after_success:
+ - "make submit-coverage-to-coveralls"
diff --git a/node_modules/passport/node_modules/passport-strategy/LICENSE b/node_modules/passport/node_modules/passport-strategy/LICENSE
new file mode 100644
index 0000000..ec885b5
--- /dev/null
+++ b/node_modules/passport/node_modules/passport-strategy/LICENSE
@@ -0,0 +1,20 @@
+(The MIT License)
+
+Copyright (c) 2011-2013 Jared Hanson
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/passport/node_modules/passport-strategy/README.md b/node_modules/passport/node_modules/passport-strategy/README.md
new file mode 100644
index 0000000..71de07f
--- /dev/null
+++ b/node_modules/passport/node_modules/passport-strategy/README.md
@@ -0,0 +1,61 @@
+# passport-strategy
+
+[![Build](https://travis-ci.org/jaredhanson/passport-strategy.png)](http://travis-ci.org/jaredhanson/passport-strategy)
+[![Coverage](https://coveralls.io/repos/jaredhanson/passport-strategy/badge.png)](https://coveralls.io/r/jaredhanson/passport-strategy)
+[![Dependencies](https://david-dm.org/jaredhanson/passport-strategy.png)](http://david-dm.org/jaredhanson/passport-strategy)
+
+
+An abstract class implementing [Passport](http://passportjs.org/)'s strategy
+API.
+
+## Install
+
+ $ npm install passport-strategy
+
+## Usage
+
+This module exports an abstract `Strategy` class that is intended to be
+subclassed when implementing concrete authentication strategies. Once
+implemented, such strategies can be used by applications that utilize Passport
+middleware for authentication.
+
+#### Subclass Strategy
+
+Create a new `CustomStrategy` constructor which inherits from `Strategy`:
+
+```javascript
+var util = require('util')
+ , Strategy = require('passport-strategy');
+
+function CustomStrategy(...) {
+ Strategy.call(this);
+}
+
+util.inherits(CustomStrategy, Strategy);
+```
+
+#### Implement Authentication
+
+Implement `autheticate()`, performing the necessary operations required by the
+authentication scheme or protocol being implemented.
+
+```javascript
+CustomStrategy.prototype.authenticate = function(req, options) {
+ // TODO: authenticate request
+}
+```
+
+## Tests
+
+ $ npm install
+ $ npm test
+
+## Credits
+
+ - [Jared Hanson](http://github.com/jaredhanson)
+
+## License
+
+[The MIT License](http://opensource.org/licenses/MIT)
+
+Copyright (c) 2011-2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>
diff --git a/node_modules/passport/node_modules/passport-strategy/lib/index.js b/node_modules/passport/node_modules/passport-strategy/lib/index.js
new file mode 100644
index 0000000..a6fdfa7
--- /dev/null
+++ b/node_modules/passport/node_modules/passport-strategy/lib/index.js
@@ -0,0 +1,15 @@
+/**
+ * Module dependencies.
+ */
+var Strategy = require('./strategy');
+
+
+/**
+ * Expose `Strategy` directly from package.
+ */
+exports = module.exports = Strategy;
+
+/**
+ * Export constructors.
+ */
+exports.Strategy = Strategy;
diff --git a/node_modules/passport/node_modules/passport-strategy/lib/strategy.js b/node_modules/passport/node_modules/passport-strategy/lib/strategy.js
new file mode 100644
index 0000000..5a7eb28
--- /dev/null
+++ b/node_modules/passport/node_modules/passport-strategy/lib/strategy.js
@@ -0,0 +1,28 @@
+/**
+ * Creates an instance of `Strategy`.
+ *
+ * @constructor
+ * @api public
+ */
+function Strategy() {
+}
+
+/**
+ * Authenticate request.
+ *
+ * This function must be overridden by subclasses. In abstract form, it always
+ * throws an exception.
+ *
+ * @param {Object} req The request to authenticate.
+ * @param {Object} [options] Strategy-specific options.
+ * @api public
+ */
+Strategy.prototype.authenticate = function(req, options) {
+ throw new Error('Strategy#authenticate must be overridden by subclass');
+};
+
+
+/**
+ * Expose `Strategy`.
+ */
+module.exports = Strategy;
diff --git a/node_modules/passport/node_modules/passport-strategy/package.json b/node_modules/passport/node_modules/passport-strategy/package.json
new file mode 100644
index 0000000..05b9708
--- /dev/null
+++ b/node_modules/passport/node_modules/passport-strategy/package.json
@@ -0,0 +1,72 @@
+{
+ "name": "passport-strategy",
+ "version": "1.0.0",
+ "description": "An abstract class implementing Passport's strategy API.",
+ "keywords": [
+ "passport",
+ "strategy"
+ ],
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/jaredhanson/passport-strategy.git"
+ },
+ "bugs": {
+ "url": "http://github.com/jaredhanson/passport-strategy/issues"
+ },
+ "author": {
+ "name": "Jared Hanson",
+ "email": "jaredhanson@gmail.com",
+ "url": "http://www.jaredhanson.net/"
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "http://www.opensource.org/licenses/MIT"
+ }
+ ],
+ "main": "./lib",
+ "dependencies": {},
+ "devDependencies": {
+ "mocha": "1.x.x",
+ "chai": "1.x.x"
+ },
+ "engines": {
+ "node": ">= 0.4.0"
+ },
+ "scripts": {
+ "test": "mocha --reporter spec --require test/bootstrap/node test/*.test.js"
+ },
+ "testling": {
+ "browsers": [
+ "chrome/latest"
+ ],
+ "harness": "mocha",
+ "files": [
+ "test/bootstrap/testling.js",
+ "test/*.test.js"
+ ]
+ },
+ "readme": "# passport-strategy\n\n[![Build](https://travis-ci.org/jaredhanson/passport-strategy.png)](http://travis-ci.org/jaredhanson/passport-strategy)\n[![Coverage](https://coveralls.io/repos/jaredhanson/passport-strategy/badge.png)](https://coveralls.io/r/jaredhanson/passport-strategy)\n[![Dependencies](https://david-dm.org/jaredhanson/passport-strategy.png)](http://david-dm.org/jaredhanson/passport-strategy)\n\n\nAn abstract class implementing [Passport](http://passportjs.org/)'s strategy\nAPI.\n\n## Install\n\n $ npm install passport-strategy\n\n## Usage\n\nThis module exports an abstract `Strategy` class that is intended to be\nsubclassed when implementing concrete authentication strategies. Once\nimplemented, such strategies can be used by applications that utilize Passport\nmiddleware for authentication.\n\n#### Subclass Strategy\n\nCreate a new `CustomStrategy` constructor which inherits from `Strategy`:\n\n```javascript\nvar util = require('util')\n , Strategy = require('passport-strategy');\n\nfunction CustomStrategy(...) {\n Strategy.call(this);\n}\n\nutil.inherits(CustomStrategy, Strategy);\n```\n\n#### Implement Authentication\n\nImplement `autheticate()`, performing the necessary operations required by the\nauthentication scheme or protocol being implemented.\n\n```javascript\nCustomStrategy.prototype.authenticate = function(req, options) {\n // TODO: authenticate request\n}\n```\n\n## Tests\n\n $ npm install\n $ npm test\n\n## Credits\n\n - [Jared Hanson](http://github.com/jaredhanson)\n\n## License\n\n[The MIT License](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2011-2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>\n",
+ "readmeFilename": "README.md",
+ "_id": "passport-strategy@1.0.0",
+ "dist": {
+ "shasum": "b5539aa8fc225a3d1ad179476ddf236b440f52e4",
+ "tarball": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz"
+ },
+ "_from": "passport-strategy@>=1.0.0 <2.0.0",
+ "_npmVersion": "1.2.25",
+ "_npmUser": {
+ "name": "jaredhanson",
+ "email": "jaredhanson@gmail.com"
+ },
+ "maintainers": [
+ {
+ "name": "jaredhanson",
+ "email": "jaredhanson@gmail.com"
+ }
+ ],
+ "directories": {},
+ "_shasum": "b5539aa8fc225a3d1ad179476ddf236b440f52e4",
+ "_resolved": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz",
+ "homepage": "https://github.com/jaredhanson/passport-strategy#readme"
+}
diff --git a/node_modules/passport/node_modules/pause/.npmignore b/node_modules/passport/node_modules/pause/.npmignore
new file mode 100644
index 0000000..f1250e5
--- /dev/null
+++ b/node_modules/passport/node_modules/pause/.npmignore
@@ -0,0 +1,4 @@
+support
+test
+examples
+*.sock
diff --git a/node_modules/passport/node_modules/pause/History.md b/node_modules/passport/node_modules/pause/History.md
new file mode 100644
index 0000000..c8aa68f
--- /dev/null
+++ b/node_modules/passport/node_modules/pause/History.md
@@ -0,0 +1,5 @@
+
+0.0.1 / 2010-01-03
+==================
+
+ * Initial release
diff --git a/node_modules/passport/node_modules/pause/Makefile b/node_modules/passport/node_modules/pause/Makefile
new file mode 100644
index 0000000..4e9c8d3
--- /dev/null
+++ b/node_modules/passport/node_modules/pause/Makefile
@@ -0,0 +1,7 @@
+
+test:
+ @./node_modules/.bin/mocha \
+ --require should \
+ --reporter spec
+
+.PHONY: test \ No newline at end of file
diff --git a/node_modules/passport/node_modules/pause/Readme.md b/node_modules/passport/node_modules/pause/Readme.md
new file mode 100644
index 0000000..1cdd68a
--- /dev/null
+++ b/node_modules/passport/node_modules/pause/Readme.md
@@ -0,0 +1,29 @@
+
+# pause
+
+ Pause streams...
+
+## License
+
+(The MIT License)
+
+Copyright (c) 2012 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file
diff --git a/node_modules/passport/node_modules/pause/index.js b/node_modules/passport/node_modules/pause/index.js
new file mode 100644
index 0000000..1b7b379
--- /dev/null
+++ b/node_modules/passport/node_modules/pause/index.js
@@ -0,0 +1,29 @@
+
+module.exports = function(obj){
+ var onData
+ , onEnd
+ , events = [];
+
+ // buffer data
+ obj.on('data', onData = function(data, encoding){
+ events.push(['data', data, encoding]);
+ });
+
+ // buffer end
+ obj.on('end', onEnd = function(data, encoding){
+ events.push(['end', data, encoding]);
+ });
+
+ return {
+ end: function(){
+ obj.removeListener('data', onData);
+ obj.removeListener('end', onEnd);
+ },
+ resume: function(){
+ this.end();
+ for (var i = 0, len = events.length; i < len; ++i) {
+ obj.emit.apply(obj, events[i]);
+ }
+ }
+ };
+}; \ No newline at end of file
diff --git a/node_modules/passport/node_modules/pause/package.json b/node_modules/passport/node_modules/pause/package.json
new file mode 100644
index 0000000..77fe974
--- /dev/null
+++ b/node_modules/passport/node_modules/pause/package.json
@@ -0,0 +1,32 @@
+{
+ "name": "pause",
+ "version": "0.0.1",
+ "description": "Pause streams...",
+ "keywords": [],
+ "author": {
+ "name": "TJ Holowaychuk",
+ "email": "tj@vision-media.ca"
+ },
+ "dependencies": {},
+ "devDependencies": {
+ "mocha": "*",
+ "should": "*"
+ },
+ "main": "index",
+ "_id": "pause@0.0.1",
+ "dist": {
+ "shasum": "1d408b3fdb76923b9543d96fb4c9dfd535d9cb5d",
+ "tarball": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz"
+ },
+ "maintainers": [
+ {
+ "name": "tjholowaychuk",
+ "email": "tj@vision-media.ca"
+ }
+ ],
+ "directories": {},
+ "_shasum": "1d408b3fdb76923b9543d96fb4c9dfd535d9cb5d",
+ "_resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz",
+ "_from": "pause@0.0.1",
+ "readme": "ERROR: No README data found!"
+}
diff --git a/node_modules/passport/package.json b/node_modules/passport/package.json
index d99e562..17f270a 100644
--- a/node_modules/passport/package.json
+++ b/node_modules/passport/package.json
@@ -1,97 +1,72 @@
{
- "_args": [
- [
- "passport",
- "/home/humair/School/csc309/a4/solutions_repo"
- ]
- ],
- "_from": "passport@latest",
- "_id": "passport@0.3.2",
- "_inCache": true,
- "_installable": true,
- "_location": "/passport",
- "_npmUser": {
- "email": "jaredhanson@gmail.com",
- "name": "jaredhanson"
- },
- "_npmVersion": "1.4.28",
- "_phantomChildren": {},
- "_requested": {
- "name": "passport",
- "raw": "passport",
- "rawSpec": "",
- "scope": null,
- "spec": "latest",
- "type": "tag"
- },
- "_requiredBy": [
- "/"
+ "name": "passport",
+ "version": "0.3.2",
+ "description": "Simple, unobtrusive authentication for Node.js.",
+ "keywords": [
+ "express",
+ "connect",
+ "auth",
+ "authn",
+ "authentication"
],
- "_resolved": "https://registry.npmjs.org/passport/-/passport-0.3.2.tgz",
- "_shasum": "9dd009f915e8fe095b0124a01b8f82da07510102",
- "_shrinkwrap": null,
- "_spec": "passport",
- "_where": "/home/humair/School/csc309/a4/solutions_repo",
"author": {
- "email": "jaredhanson@gmail.com",
"name": "Jared Hanson",
+ "email": "jaredhanson@gmail.com",
"url": "http://www.jaredhanson.net/"
},
+ "homepage": "http://passportjs.org/",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/jaredhanson/passport.git"
+ },
"bugs": {
"url": "http://github.com/jaredhanson/passport/issues"
},
+ "license": "MIT",
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "http://www.opensource.org/licenses/MIT"
+ }
+ ],
+ "main": "./lib",
"dependencies": {
"passport-strategy": "1.x.x",
"pause": "0.0.1"
},
- "description": "Simple, unobtrusive authentication for Node.js.",
"devDependencies": {
+ "mocha": "2.x.x",
"chai": "2.x.x",
"chai-connect-middleware": "0.3.x",
"chai-passport-strategy": "0.2.x",
- "mocha": "2.x.x",
"proxyquire": "1.x.x"
},
- "directories": {},
- "dist": {
- "shasum": "9dd009f915e8fe095b0124a01b8f82da07510102",
- "tarball": "https://registry.npmjs.org/passport/-/passport-0.3.2.tgz"
- },
"engines": {
"node": ">= 0.4.0"
},
+ "scripts": {
+ "test": "mocha --reporter spec --require test/bootstrap/node test/*.test.js test/**/*.test.js"
+ },
"gitHead": "ee57813037914642906aa9ed9e1c9ecbebf905ff",
- "homepage": "http://passportjs.org/",
- "keywords": [
- "auth",
- "authentication",
- "authn",
- "connect",
- "express"
- ],
- "license": "MIT",
- "licenses": [
- {
- "type": "MIT",
- "url": "http://www.opensource.org/licenses/MIT"
- }
- ],
- "main": "./lib",
+ "_id": "passport@0.3.2",
+ "_shasum": "9dd009f915e8fe095b0124a01b8f82da07510102",
+ "_from": "passport@latest",
+ "_npmVersion": "1.4.28",
+ "_npmUser": {
+ "name": "jaredhanson",
+ "email": "jaredhanson@gmail.com"
+ },
"maintainers": [
{
"name": "jaredhanson",
"email": "jaredhanson@gmail.com"
}
],
- "name": "passport",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git://github.com/jaredhanson/passport.git"
- },
- "scripts": {
- "test": "mocha --reporter spec --require test/bootstrap/node test/*.test.js test/**/*.test.js"
+ "dist": {
+ "shasum": "9dd009f915e8fe095b0124a01b8f82da07510102",
+ "tarball": "https://registry.npmjs.org/passport/-/passport-0.3.2.tgz"
},
- "version": "0.3.2"
+ "directories": {},
+ "_resolved": "https://registry.npmjs.org/passport/-/passport-0.3.2.tgz",
+ "readme": "ERROR: No README data found!"
}