Page Contents

Home > @loopback/authentication > AuthenticateActionProvider

AuthenticateActionProvider class

Provides the authentication action for a sequence

Signature:

export declare class AuthenticateActionProvider implements Provider<AuthenticateFn> 

Constructors

Constructor Modifiers Description
(constructor)(getStrategy, setCurrentUser)   Constructs a new instance of the AuthenticateActionProvider class

Properties

Property Modifiers Type Description
getStrategy   Getter<AuthenticationStrategy>  
setCurrentUser   Setter<UserProfile>  

Methods

Method Modifiers Description
action(request)   The implementation of authenticate() sequence action.
value()    

Example

context.bind('authentication.actions.authenticate').toProvider(AuthenticateActionProvider)