Security
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(arg_runtime: RuntimeBase, arg_log_context: string, arg_settings: object): nothing Create a Security instance. |
Member Summary
Public Members | ||
public |
Authentication manager instance. |
|
public |
Authorization manager instance. |
|
public |
Application is read only flag. |
|
public |
Class test flag. |
Method Summary
Public Methods | ||
public |
authenticate(arg_credentials: Credentials): Promise Authenticate a user with giving credentials. |
|
public |
Get authentication plugins manager. |
|
public |
Get authorization plugins manager. |
|
public |
Authenticate a user with giving credentials. |
|
public |
error_bad_credentials(): nothing Error wrapper - on bad credentials. |
|
public |
error_bad_user(): nothing Error wrapper - on bad user. |
|
public |
Get authentication plugins manager. |
|
public |
Get authorization plugins manager. |
|
public |
Load security settings. |
Public Constructors
Public Members
Public Methods
public authenticate(arg_credentials: Credentials): Promise source
Authenticate a user with giving credentials.
Params:
Name | Type | Attribute | Description |
arg_credentials | Credentials | credentials object. |
public authorize(arg_permission: object, arg_credentials: object): Promise source
Authenticate a user with giving credentials.