Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@loopback/authentication

Package Overview
Dependencies
Maintainers
10
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loopback/authentication

A LoopBack component for authentication support.

  • 9.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10K
decreased by-4.78%
Maintainers
10
Weekly downloads
 
Created
Source

@loopback/authentication

A LoopBack 4 component for authentication support. Its corresponding documentation is in LoopBack component authentication

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 (No longer needed for middleware based sequence)
  • 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

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.

Note

Starting from version @loobpack/authentication@3.0.0, UserProfile needs to be imported from @loopback/security and it's not backward compatible with the one exported from @loobpack/authentication@2.x. Make sure you follow the new tutorial to build the authentication system.

Contributions

Tests

run npm test from the root folder.

Contributors

See all contributors.

License

MIT

Keywords

FAQs

Package last updated on 14 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc