Page Contents

Home > @loopback/authentication > AuthenticateActionProvider > (constructor)

AuthenticateActionProvider.(constructor)

Constructs a new instance of the AuthenticateActionProvider class

Signature:

constructor(getStrategies: Getter<AuthenticationStrategy | AuthenticationStrategy[] | undefined>, setCurrentUser: Setter<UserProfile>, setRedirectUrl: Setter<string>, setRedirectStatus: Setter<number>, options?: AuthenticationOptions);

Parameters

Parameter Type Description
getStrategies Getter<[AuthenticationStrategy](/doc/en/lb4/apidocs.authentication.authenticationstrategy.html) \| [AuthenticationStrategy](/doc/en/lb4/apidocs.authentication.authenticationstrategy.html)\[\] \| undefined>
setCurrentUser [Setter](/doc/en/lb4/apidocs.context.setter.html)<[UserProfile](/doc/en/lb4/apidocs.security.userprofile.html)>
setRedirectUrl [Setter](/doc/en/lb4/apidocs.context.setter.html)<string>
setRedirectStatus [Setter](/doc/en/lb4/apidocs.context.setter.html)<number>
options [AuthenticationOptions](/doc/en/lb4/apidocs.authentication.authenticationoptions.html) _(Optional)_