Auth
Handles Authentication
Constructor Summary
| Public Constructor | ||
| public |
constructor(core: Core, options: AuthSettings) |
|
Member Summary
| Public Members | ||
| public |
Authentication adapter |
|
| public |
Core instance reference |
|
| public |
Authentication UI |
|
Method Summary
| Public Methods | ||
| public |
destroy() Destroy authentication handler |
|
| public |
init(): * Initializes authentication handler |
|
| public |
Performs a login |
|
| public |
Performs a logout |
|
| public |
Performs a register call |
|
| public |
Shows Login UI |
|
| public |
Run the shutdown procedure |
|
Public Constructors
public constructor(core: Core, options: AuthSettings) source
Params:
| Name | Type | Attribute | Description |
| core | Core | OS.js Core instance reference |
|
| options | AuthSettings |
|
Auth Options |
Public Members
Public Methods
public login(values: AuthForm): Promise<boolean> source
Performs a login
Params:
| Name | Type | Attribute | Description |
| values | AuthForm | Form values as JSON |
public logout(reload: boolean): Promise<boolean> source
Performs a logout
Params:
| Name | Type | Attribute | Description |
| reload | boolean |
|
Reload client afterwards |
public register(values: AuthForm): Promise<*> source
Performs a register call
Params:
| Name | Type | Attribute | Description |
| values | AuthForm | Form values as JSON |
