@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
55 lines (37 loc) • 2.55 kB
Markdown
---
lang: en
title: 'API docs: authentication.authenticateactionprovider'
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.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/authentication](./authentication.md) > [AuthenticateActionProvider](./authentication.authenticateactionprovider.md)
## AuthenticateActionProvider class
Provides the authentication action for a sequence
<b>Signature:</b>
```typescript
export declare class AuthenticateActionProvider implements Provider<AuthenticateFn>
```
<b>Implements:</b> [Provider](./context.provider.md)<!-- --><[AuthenticateFn](./authentication.authenticatefn.md)<!-- -->>
## Example
```ts
context.bind('authentication.actions.authenticate').toProvider(AuthenticateActionProvider)
```
## Constructors
| Constructor | Modifiers | Description |
| --- | --- | --- |
| [(constructor)(getStrategies, setCurrentUser, setRedirectUrl, setRedirectStatus, options)](./authentication.authenticateactionprovider._constructor_.md) | | Constructs a new instance of the <code>AuthenticateActionProvider</code> class |
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [getStrategies](./authentication.authenticateactionprovider.getstrategies.md) | | [Getter](./context.getter.md)<!-- --><[AuthenticationStrategy](./authentication.authenticationstrategy.md) \| [AuthenticationStrategy](./authentication.authenticationstrategy.md)<!-- -->\[\] \| undefined> | |
| [setCurrentUser](./authentication.authenticateactionprovider.setcurrentuser.md) | | [Setter](./context.setter.md)<!-- --><[UserProfile](./security.userprofile.md)<!-- -->> | |
| [setRedirectStatus](./authentication.authenticateactionprovider.setredirectstatus.md) | | [Setter](./context.setter.md)<!-- --><number> | |
| [setRedirectUrl](./authentication.authenticateactionprovider.setredirecturl.md) | | [Setter](./context.setter.md)<!-- --><string> | |
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [action(request)](./authentication.authenticateactionprovider.action.md) | | The implementation of authenticate() sequence action. |
| [value()](./authentication.authenticateactionprovider.value.md) | | |