Socket
Socket
Sign inDemoInstall

passport

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passport - npm Package Compare versions

Comparing version 0.1.15 to 0.1.16

35

lib/passport/index.js

@@ -24,2 +24,3 @@ /**

this._infoTransformers = [];
this._framework = null;

@@ -82,2 +83,26 @@ this._userProperty = 'user';

/**
* Setup Passport to be used under framework.
*
* By default, Passport exposes middleware that operate using Connect-style
* middleware using a `fn(req, res, next)` signature. Other popular frameworks
* have different expectations, and this function allows Passport to be adapted
* to operate within such environments.
*
* If you are using a Connect-compatible framework, including Express, there is
* no need to invoke this function.
*
* Examples:
*
* passport.framework(require('hapi-passport')());
*
* @param {Object} name
* @return {Passport} for chaining
* @api public
*/
Passport.prototype.framework = function(fw) {
this._framework = fw;
return this;
}
/**
* Passport's primary initialization middleware.

@@ -109,2 +134,6 @@ *

if (this._framework && this._framework.initialize) {
return this._framework.initialize().bind(this);
}
return initialize().bind(this);

@@ -176,2 +205,6 @@ }

Passport.prototype.authenticate = function(strategy, options, callback) {
if (this._framework && this._framework.authenticate) {
return this._framework.authenticate(strategy, options, callback).bind(this);
}
return authenticate(strategy, options, callback).bind(this);

@@ -416,2 +449,2 @@ }

*/
require('./http/request');
require('./http/request');

20

package.json
{
"name": "passport",
"version": "0.1.15",
"version": "0.1.16",
"description": "Simple, unobtrusive authentication for Node.js.",
"author": { "name": "Jared Hanson", "email": "jaredhanson@gmail.com", "url": "http://www.jaredhanson.net/" },
"keywords": ["express", "connect", "auth", "authn", "authentication"],
"homepage": "http://passportjs.org/",

@@ -14,2 +14,11 @@ "repository": {

},
"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/passport",

@@ -25,8 +34,3 @@ "dependencies": {

},
"engines": { "node": ">= 0.4.0" },
"licenses": [ {
"type": "MIT",
"url": "http://www.opensource.org/licenses/MIT"
} ],
"keywords": ["express", "connect", "auth", "authn", "authentication"]
"engines": { "node": ">= 0.4.0" }
}

@@ -16,3 +16,3 @@ # Passport

## Installation
## Install

@@ -118,2 +118,3 @@ $ npm install passport

- [Digg](https://github.com/jaredhanson/passport-digg)
- [doctape](https://github.com/doctape/passport-doctape)
- [Dropbox](https://github.com/jaredhanson/passport-dropbox)

@@ -156,2 +157,3 @@ - [Dwolla](https://github.com/jaredhanson/passport-dwolla)

- [SmugMug](https://github.com/jaredhanson/passport-smugmug)
- [SharePoint](https://github.com/QuePort/passport-sharepoint) by [QuePort](https://github.com/QuePort)
- [SoundCloud](https://github.com/jaredhanson/passport-soundcloud)

@@ -161,2 +163,3 @@ - [StatusNet](https://github.com/zoowar/passport-statusnet) by [ZooWar](https://github.com/zoowar)

- [SUPINFO](https://github.com/godezinc/passport-supinfo) by [Vincent PEYROUSE](https://github.com/GodezInc)
- [Trade Me](https://github.com/Tumunu/passport-trademe) by [Tumunu](https://github.com/Tumunu)
- [TripIt](https://github.com/jaredhanson/passport-tripit)

@@ -175,2 +178,3 @@ - [Tumblr](https://github.com/jaredhanson/passport-tumblr)

- [Yandex](https://github.com/gurugray/passport-yandex) by [Sergey Sergeev](https://github.com/gurugray)
- [Atlassian Crowd](https://bitbucket.org/knecht_andreas/passport-atlassian-crowd) by [Andreas Knecht](https://bitbucket.org/knecht_andreas)
- [OpenSSO](https://github.com/oroce/passport-opensso) by [Róbert Oroszi](https://github.com/oroce)

@@ -203,21 +207,4 @@ - [OpenAM](https://github.com/alesium/passport-openam) by [Alesium](https://github.com/alesium)

(The MIT License)
[The MIT License](http://opensource.org/licenses/MIT)
Copyright (c) 2011 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.
Copyright (c) 2011-2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc