npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

@loopback/authentication

2.1.6 • Public • Published

@loopback/authentication

A LoopBack 4 component for authentication support.

Overview

AuthenticationComponent

This component contains the core logic for the authentication layer in LoopBack 4.

It contains:

  • A decorator to express an authentication requirement on controller methods
  • A provider to access method-level authentication metadata
  • An action in the REST sequence to enforce authentication
  • An extension point to discover all authentication strategies and handle the delegation

Installation

npm install --save @loopback/authentication

Basic Use

Load the AuthenticationComponent into your application.

Extension developers need to:

Application Developers need to:

Create and register a passport based strategy

Related resources

For detailed documentation, see AuthenticationComponent.

For a tutorial on how to add JWT authentication to an application, see How to secure your LoopBack 4 application with JWT authentication.

For some background on our design decisions, please read Multiple Authentication strategies.

Contributions

Tests

run npm test from the root folder.

Contributors

See all contributors.

License

MIT

install

npm i @loopback/authentication

Downloadsweekly downloads

2,149

version

2.1.6

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability