Reference Source
public class | source

AuthenticationWrapper

Extends:

devapt-core-common/dist/js/base/settingsable~Settingsable → AuthenticationWrapper

Constructor Summary

Public Constructor
public

constructor(arg_log_context: string | undefined, arg_logger_manager: LoggerManager): nothing

Create an Authentication wrapper class to interact with authentication plugins.

Member Summary

Public Members
public
public
public

Method Summary

Public Methods
public

Apply all plugins authentication middleware on a Server instance.

public

load(arg_settings: object): nothing

Load security settings.

Public Constructors

public constructor(arg_log_context: string | undefined, arg_logger_manager: LoggerManager): nothing source

Create an Authentication wrapper class to interact with authentication plugins.

Params:

NameTypeAttributeDescription
arg_log_context string | undefined

optional.

arg_logger_manager LoggerManager

logger manager instance.

Return:

nothing

Public Members

public authentication_is_enabled: boolean source

public authentication_plugins: *[] source

public is_authentication_wrapper: boolean source

Public Methods

public apply_middlewares(arg_server: Server): boolean source

Apply all plugins authentication middleware on a Server instance.

Params:

NameTypeAttributeDescription
arg_server Server

server instance.

Return:

boolean

public load(arg_settings: object): nothing source

Load security settings.

Params:

NameTypeAttributeDescription
arg_settings object

authentication settings (Immutable object).

Return:

nothing