---
lang: en
title: 'API docs: authentication.registerauthenticationstrategy'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.authentication.registerauthenticationstrategy.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/authentication](./authentication.md) &gt; [registerAuthenticationStrategy](./authentication.registerauthenticationstrategy.md)

## registerAuthenticationStrategy() function

Registers an authentication strategy as an extension of the AuthenticationBindings.AUTHENTICATION\_STRATEGY\_EXTENSION\_POINT\_NAME extension point.

<b>Signature:</b>

```typescript
export declare function registerAuthenticationStrategy(context: Context, strategyClass: Constructor<AuthenticationStrategy>): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  context | <code>Context</code> |  |
|  strategyClass | <code>Constructor&lt;AuthenticationStrategy&gt;</code> |  |

<b>Returns:</b>

`void`


