Page Contents

Home > @loopback/authentication > AuthenticationStrategyProvider

AuthenticationStrategyProvider class

An authentication strategy provider responsible for resolving an authentication strategy by name.

It declares an extension point to which all authentication strategy implementations must register themselves as extensions.

Signature:

export declare class AuthenticationStrategyProvider implements Provider<AuthenticationStrategy[] | undefined> 

Implements: Provider<AuthenticationStrategy

Example

context.bind('authentication.strategy').toProvider(AuthenticationStrategyProvider)

Constructors

Constructor Modifiers Description
(constructor)(authenticationStrategies, metadata)   Constructs a new instance of the AuthenticationStrategyProvider class

Properties

Property Modifiers Type Description
authenticationStrategies   Getter<AuthenticationStrategy[]>  
metadata?   AuthenticationMetadata[] | undefined (Optional)

Methods

Method Modifiers Description
value()