UNPKG

@loopback/authentication-passport

Version:

A package creating adapters between the passport module and @loopback/authentication

26 lines 1.14 kB
"use strict"; // Copyright IBM Corp. 2019,2020. All Rights Reserved. // Node module: @loopback/authentication-passport // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); /** * An adapter to plug in passport based strategies to the authentication system * in {@link @loopback/authentication# | @loopback/authentication @3.x }. * * @remarks * {@link @loopback/authentication# | @loopback/authentication @3.x } allows * users to register authentication strategies that implement the interface * `AuthenticationStrategy`. * * Since AuthenticationStrategy describes a strategy with different contracts * than the passport Strategy, and we'd like to support the existing 500+ * community passport strategies, an adapter class is created in this package to * convert a passport strategy to the one that LoopBack 4 authentication system * wants. * * @packageDocumentation */ tslib_1.__exportStar(require("./strategy-adapter"), exports); //# sourceMappingURL=index.js.map