Page Contents
Home > @loopback/authentication > registerAuthenticationStrategy
registerAuthenticationStrategy() function
Registers an authentication strategy as an extension of the AuthenticationBindings.AUTHENTICATION_STRATEGY_EXTENSION_POINT_NAME extension point.
Signature:
export declare function registerAuthenticationStrategy(context: Context, strategyClass: Constructor<AuthenticationStrategy>): Binding<unknown>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| context | [Context](/doc/en/lb4/apidocs.context.context.html) | Context object |
| strategyClass | [Constructor](/doc/en/lb4/apidocs.context.constructor.html)<[AuthenticationStrategy](/doc/en/lb4/apidocs.authentication.authenticationstrategy.html)> | Class for the authentication strategy |
Returns:
Binding<unknown>