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)](/doc/en/lb4/apidocs.authentication.authenticateactionprovider._constructor_.html) Constructs a new instance of the `AuthenticateActionProvider` class

Properties

Property Modifiers Type Description
[getStrategies](/doc/en/lb4/apidocs.authentication.authenticateactionprovider.getstrategies.html) `readonly` Getter<[AuthenticationStrategy](/doc/en/lb4/apidocs.authentication.authenticationstrategy.html) \| [AuthenticationStrategy](/doc/en/lb4/apidocs.authentication.authenticationstrategy.html)\[\] \| undefined>
[setCurrentUser](/doc/en/lb4/apidocs.authentication.authenticateactionprovider.setcurrentuser.html) `readonly` [Setter](/doc/en/lb4/apidocs.context.setter.html)<[UserProfile](/doc/en/lb4/apidocs.security.userprofile.html)>
[setRedirectStatus](/doc/en/lb4/apidocs.authentication.authenticateactionprovider.setredirectstatus.html) `readonly` [Setter](/doc/en/lb4/apidocs.context.setter.html)<number>
[setRedirectUrl](/doc/en/lb4/apidocs.authentication.authenticateactionprovider.setredirecturl.html) `readonly` [Setter](/doc/en/lb4/apidocs.context.setter.html)<string>

Methods

Method Modifiers Description
[action(request)](/doc/en/lb4/apidocs.authentication.authenticateactionprovider.action.html) The implementation of authenticate() sequence action.
[value()](/doc/en/lb4/apidocs.authentication.authenticateactionprovider.value.html)