passport
Advanced tools
Comparing version 0.1.17 to 0.1.18
@@ -238,4 +238,10 @@ /** | ||
Passport.prototype.authorize = function(strategy, options, callback) { | ||
var fwAuthorize = this._framework && (this._framework.authorize || this._framework.authenticate); | ||
options = options || {}; | ||
options.assignProperty = 'account'; | ||
if (fwAuthorize) { | ||
return fwAuthorize(strategy, options, callback).bind(this); | ||
} | ||
@@ -242,0 +248,0 @@ return authenticate(strategy, options, callback).bind(this); |
{ | ||
"name": "passport", | ||
"version": "0.1.17", | ||
"version": "0.1.18", | ||
"description": "Simple, unobtrusive authentication for Node.js.", | ||
"keywords": ["express", "connect", "auth", "authn", "authentication"], | ||
"keywords": [ | ||
"express", | ||
"connect", | ||
"auth", | ||
"authn", | ||
"authentication" | ||
], | ||
"homepage": "http://passportjs.org/", | ||
@@ -19,6 +25,8 @@ "repository": { | ||
}, | ||
"licenses": [ { | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/MIT" | ||
} ], | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/MIT" | ||
} | ||
], | ||
"main": "./lib/passport", | ||
@@ -30,3 +38,3 @@ "dependencies": { | ||
"devDependencies": { | ||
"vows": "0.6.x" | ||
"vows": "~0.7.0" | ||
}, | ||
@@ -36,3 +44,5 @@ "scripts": { | ||
}, | ||
"engines": { "node": ">= 0.4.0" } | ||
"engines": { | ||
"node": ">= 0.4.0" | ||
} | ||
} |
@@ -17,2 +17,8 @@ # Passport | ||
###### Donate | ||
Using Passport in your project? [Donations](https://www.gittip.com/jaredhanson/) | ||
are greatly appreciated and help support development of this and other quality | ||
modules. | ||
## Usage | ||
@@ -89,10 +95,5 @@ | ||
## Examples | ||
For a complete, working example, refer to the [login example](https://github.com/jaredhanson/passport-local/tree/master/examples/login) | ||
included in [passport-local](https://github.com/jaredhanson/passport-local). | ||
## Strategies | ||
Passport has a comprehensive set of **over 120** authentication strategies | ||
Passport has a comprehensive set of **over 140** authentication strategies | ||
covering social networking, enterprise integration, API services, and more. | ||
@@ -114,2 +115,8 @@ The [complete list](https://github.com/jaredhanson/passport/wiki/Strategies) is | ||
## Examples | ||
- For a complete, working example, refer to the [login example](https://github.com/jaredhanson/passport-local/tree/master/examples/login) | ||
included in [passport-local](https://github.com/jaredhanson/passport-local). | ||
- Please refer to this [tutorial](http://mherman.org/blog/2013/11/10/social-authentication-with-passport-dot-js/) on setting up various social authentication strategies, including a working example found on this [repo](https://github.com/mjhea0/passport-examples). | ||
## Related Modules | ||
@@ -116,0 +123,0 @@ |
Sorry, the diff of this file is not supported yet
39967
986
146