Auth
Authentication Handler
Constructor Summary
| Public Constructor | ||
| public | 
       constructor(core: Core, options: AuthOptions) Creates a new instance  | 
    |
Member Summary
| Public Members | ||
| public | 
      
       | 
    |
| public | 
      
       | 
    |
| public | 
      
       | 
    |
Method Summary
| Public Methods | ||
| public | 
       checkLoginPermissions(profile: AuthUserProfile): boolean Checks if login is allowed for this user  | 
    |
| public | 
       async createHomeDirectory(profile: AuthUserProfile): Promise<undefined> Tries to create home directory for a user  | 
    |
| public | 
       async createHomeDirectoryFromArray(template: Object[], vfs: VFSServiceProvider, profile: AuthUserProfile) If the template is an array, it is a list of files that should be copied to the user's home directory  | 
    |
| public | 
       createUserProfile(fields: object, result: object): AuthUserProfile | boolean Creates user profile object  | 
    |
| public | 
       destroy() Destroys instance  | 
    |
| public | 
      
       Initializes adapter  | 
    |
| public | 
      
       Performs a login request  | 
    |
| public | 
      
       Performs a logout request  | 
    |
| public | 
      
       Performs a register request  | 
    |
Public Constructors
public constructor(core: Core, options: AuthOptions) source
Creates a new instance
Params:
| Name | Type | Attribute | Description | 
| core | Core | Core instance reference  | 
    |
| options | AuthOptions | 
  | 
      Service Provider arguments  | 
    
Public Methods
public checkLoginPermissions(profile: AuthUserProfile): boolean source
Checks if login is allowed for this user
Params:
| Name | Type | Attribute | Description | 
| profile | AuthUserProfile | User profile  | 
    
public async createHomeDirectory(profile: AuthUserProfile): Promise<undefined> source
Tries to create home directory for a user
Params:
| Name | Type | Attribute | Description | 
| profile | AuthUserProfile | User profile  | 
    
public async createHomeDirectoryFromArray(template: Object[], vfs: VFSServiceProvider, profile: AuthUserProfile) source
If the template is an array, it is a list of files that should be copied to the user's home directory
Params:
| Name | Type | Attribute | Description | 
| template | Object[] | Array of objects with a specified path, optionally with specified content but defaulting to an empty string  | 
    |
| vfs | VFSServiceProvider | An instance of the virtual file system  | 
    |
| profile | AuthUserProfile | User profile  | 
    
public createUserProfile(fields: object, result: object): AuthUserProfile | boolean source
Creates user profile object
public async login(req: Request, res: Response): Promise<undefined> source
Performs a login request
Params:
| Name | Type | Attribute | Description | 
| req | Request | HTTP request  | 
    |
| res | Response | HTTP response  | 
    
    
  