GoogleOauth2.0 First implementation
First try for GoogleOauth2.0
This commit is contained in:
15
express-server/node_modules/passport-strategy/lib/index.js
generated
vendored
Normal file
15
express-server/node_modules/passport-strategy/lib/index.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Module dependencies.
|
||||
*/
|
||||
var Strategy = require('./strategy');
|
||||
|
||||
|
||||
/**
|
||||
* Expose `Strategy` directly from package.
|
||||
*/
|
||||
exports = module.exports = Strategy;
|
||||
|
||||
/**
|
||||
* Export constructors.
|
||||
*/
|
||||
exports.Strategy = Strategy;
|
28
express-server/node_modules/passport-strategy/lib/strategy.js
generated
vendored
Normal file
28
express-server/node_modules/passport-strategy/lib/strategy.js
generated
vendored
Normal file
@ -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;
|
Reference in New Issue
Block a user