@inspire-platform/sails-hook-auth
Version:
Passport-based User Authentication system for sails.js applications.
25 lines (21 loc) • 570 B
JavaScript
/**
* Passport configuration
*
* This is the configuration for your Passport.js setup and it where you'd
* define the authentication strategies you want your application to employ.
*
* Authentication scopes can be set through the `scope` property.
*
* For more information on the available providers, check out:
* http://passportjs.org/guide/providers/
*/
module.exports.passport = {
local: {
strategy: require('passport-local').Strategy
},
basic: {
strategy: require('passport-http').BasicStrategy,
protocol: 'basic'
}
};
;