sso
This commit is contained in:
parent
029fe23657
commit
1876580d86
911 changed files with 160008 additions and 2 deletions
28
node_modules/passport-strategy/lib/strategy.js
generated
vendored
Normal file
28
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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue