UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

117 lines (56 loc) 2.27 kB
--- lang: en title: 'API docs: authentication.authenticateactionprovider._constructor_' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/authentication permalink: /doc/en/lb4/apidocs.authentication.authenticateactionprovider._constructor_.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/authentication](./authentication.md) &gt; [AuthenticateActionProvider](./authentication.authenticateactionprovider.md) &gt; [(constructor)](./authentication.authenticateactionprovider._constructor_.md) ## AuthenticateActionProvider.(constructor) Constructs a new instance of the `AuthenticateActionProvider` class **Signature:** ```typescript constructor(getStrategies: Getter<AuthenticationStrategy | AuthenticationStrategy[] | undefined>, setCurrentUser: Setter<UserProfile>, setRedirectUrl: Setter<string>, setRedirectStatus: Setter<number>, options?: AuthenticationOptions); ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> getStrategies </td><td markdown="1"> Getter&lt;[AuthenticationStrategy](./authentication.authenticationstrategy.md) \| [AuthenticationStrategy](./authentication.authenticationstrategy.md)<!-- -->\[\] \| undefined&gt; </td><td markdown="1"> </td></tr> <tr><td markdown="1"> setCurrentUser </td><td markdown="1"> [Setter](./context.setter.md)<!-- -->&lt;[UserProfile](./security.userprofile.md)<!-- -->&gt; </td><td markdown="1"> </td></tr> <tr><td markdown="1"> setRedirectUrl </td><td markdown="1"> [Setter](./context.setter.md)<!-- -->&lt;string&gt; </td><td markdown="1"> </td></tr> <tr><td markdown="1"> setRedirectStatus </td><td markdown="1"> [Setter](./context.setter.md)<!-- -->&lt;number&gt; </td><td markdown="1"> </td></tr> <tr><td markdown="1"> options </td><td markdown="1"> [AuthenticationOptions](./authentication.authenticationoptions.md) </td><td markdown="1"> _(Optional)_ </td></tr> </tbody></table>