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[] | undefined>

Example

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

Constructors

Constructor Modifiers Description
[(constructor)(authenticationStrategies, metadata)](/doc/en/lb4/apidocs.authentication.authenticationstrategyprovider._constructor_.html) Constructs a new instance of the `AuthenticationStrategyProvider` class

Properties

Property Modifiers Type Description
[authenticationStrategies](/doc/en/lb4/apidocs.authentication.authenticationstrategyprovider.authenticationstrategies.html) `protected` Getter<[AuthenticationStrategy](/doc/en/lb4/apidocs.authentication.authenticationstrategy.html)\[\]>
[metadata?](/doc/en/lb4/apidocs.authentication.authenticationstrategyprovider.metadata.html) `protected` [AuthenticationMetadata](/doc/en/lb4/apidocs.authentication.authenticationmetadata.html)\[\] \| undefined _(Optional)_

Methods

Method Modifiers Description
[value()](/doc/en/lb4/apidocs.authentication.authenticationstrategyprovider.value.html)