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>): void;

Parameters

Parameter Type Description
context Context  
strategyClass Constructor<AuthenticationStrategy>  

Returns:

void