Page Contents

Home > @loopback/authentication > AuthenticateActionProvider

AuthenticateActionProvider class

Provides the authentication action for a sequence

Signature:

export declare class AuthenticateActionProvider implements Provider<AuthenticateFn> 

Implements: Provider<AuthenticateFn>

Example

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

Constructors

Constructor Modifiers Description
(constructor)(getStrategies, setCurrentUser, setRedirectUrl, setRedirectStatus, options)   Constructs a new instance of the AuthenticateActionProvider class

Properties

Property Modifiers Type Description
getStrategies readonly Getter<AuthenticationStrategy | AuthenticationStrategy[] | undefined>  
setCurrentUser readonly Setter<UserProfile>  
setRedirectStatus readonly Setter<number>  
setRedirectUrl readonly Setter<string>  

Methods

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