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 | Context object |
| strategyClass | Constructor<AuthenticationStrategy> | Class for the authentication strategy |
Returns:
Binding<unknown>