UNPKG

@inspire-platform/sails-hook-auth

Version:

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

25 lines (24 loc) 911 B
'use strict'; /** * 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. */ module.exports = { local: require('./local'), basic: require('./basic'), bearer: require('./bearer'), oauth: require('./oauth'), oauth2: require('./oauth2'), openid: require('./openid'), delegated: require('./delegated'), totp: require('./totp') };