Skip to main content
Version: Next

Interface: IBasicAuth

pluginUtils.IBasicAuth

Methods

add_user

add_user(user, password, cb): any

Parameters

NameType
userstring
passwordstring
cbFunction

Returns

any

Defined in

plugin-utils.ts:193


allow_access

allow_access(pkg, user, callback): void

Parameters

NameType
pkgAuthPluginPackage
userRemoteUser
callbackFunction

Returns

void

Defined in

plugin-utils.ts:192


authenticate

authenticate(user, password, cb): void

Parameters

NameType
userstring
passwordstring
cbFunction

Returns

void

Defined in

plugin-utils.ts:189


changePassword

changePassword(user, password, newPassword, cb): void

Parameters

NameType
userstring
passwordstring
newPasswordstring
cbFunction

Returns

void

Defined in

plugin-utils.ts:191


invalidateToken

Optional invalidateToken(token): Promise<void>

Parameters

NameType
tokenstring

Returns

Promise<void>

Defined in

plugin-utils.ts:190