UNPKG

sails-auth

Version:

Passport-based User Authentication system for sails.js applications.

22 lines (21 loc) 816 B
/** * Authentication Protocols * * Protocols where introduced to patch all the little inconsistencies between * the different authentication APIs. While the local authentication strategy * is as straigt-forward as it gets, there are some differences between the * services that expose an API for authentication. * * For example, OAuth 1.0 and OAuth 2.0 both handle delegated authentication * using tokens, but the tokens have changed between the two versions. This * is accomodated by having a single `token` object in the Passport model that * can contain any combination of tokens issued by the authentication API. */ 'use strict'; module.exports = { local: require('./local'), basic: require('./basic'), oauth: require('./oauth'), oauth2: require('./oauth2'), openid: require('./openid') };