@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
117 lines (56 loc) • 2.27 kB
Markdown
---
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) > [@loopback/authentication](./authentication.md) > [AuthenticateActionProvider](./authentication.authenticateactionprovider.md) > [(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<[AuthenticationStrategy](./authentication.authenticationstrategy.md) \| [AuthenticationStrategy](./authentication.authenticationstrategy.md)<!-- -->\[\] \| undefined>
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
setCurrentUser
</td><td markdown="1">
[Setter](./context.setter.md)<!-- --><[UserProfile](./security.userprofile.md)<!-- -->>
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
setRedirectUrl
</td><td markdown="1">
[Setter](./context.setter.md)<!-- --><string>
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
setRedirectStatus
</td><td markdown="1">
[Setter](./context.setter.md)<!-- --><number>
</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>