UNPKG

@loopback/authentication

Version:

A LoopBack component for authentication support.

25 lines (22 loc) 978 B
// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved. // Node module: @loopback/authentication // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT import {Component, ContextTags, injectable} from '@loopback/core'; import {AuthenticationBindings} from './keys'; import { AuthenticateActionProvider, AuthenticationMiddlewareProvider, AuthenticationStrategyProvider, AuthMetadataProvider, } from './providers'; @injectable({tags: {[ContextTags.KEY]: AuthenticationBindings.COMPONENT}}) export class AuthenticationComponent implements Component { providers = { [AuthenticationBindings.AUTH_ACTION.key]: AuthenticateActionProvider, [AuthenticationBindings.STRATEGY.key]: AuthenticationStrategyProvider, [AuthenticationBindings.METADATA.key]: AuthMetadataProvider, [AuthenticationBindings.AUTHENTICATION_MIDDLEWARE.key]: AuthenticationMiddlewareProvider, }; }