Interface: IBasicAuth
pluginUtils.IBasicAuth
Methods
add_user
▸ add_user(user
, password
, cb
): any
Parameters
Name | Type |
---|---|
user | string |
password | string |
cb | Function |
Returns
any
Defined in
allow_access
▸ allow_access(pkg
, user
, callback
): void
Parameters
Name | Type |
---|---|
pkg | AuthPluginPackage |
user | RemoteUser |
callback | Function |
Returns
void
Defined in
authenticate
▸ authenticate(user
, password
, cb
): void
Parameters
Name | Type |
---|---|
user | string |
password | string |
cb | Function |
Returns
void
Defined in
changePassword
▸ changePassword(user
, password
, newPassword
, cb
): void
Parameters
Name | Type |
---|---|
user | string |
password | string |
newPassword | string |
cb | Function |
Returns
void
Defined in
invalidateToken
▸ Optional
invalidateToken(token
): Promise
<void
>
Parameters
Name | Type |
---|---|
token | string |
Returns
Promise
<void
>