Module: idps-dal

Methods

(static) create(idpId, idpname, userId) → {Promise.<*>}

Creates a new User that was registered through an IDP, users registered through IDP's only have an id, unlike other users who also have a name and a password.
Parameters:
Name Type Description
idpId string
idpname string
userId int
Source:
Returns:
Type
Promise.<*>

(static) delete(idpId) → {Promise.<*>}

Deletes the specified IDP.
Parameters:
Name Type Description
idpId string
Source:
Returns:
Type
Promise.<*>

(static) getByUserId(userId) → {Promise.<(Object|Error)>}

Returns the information of the user with id=userId
Parameters:
Name Type Description
userId int
Source:
Returns:
Type
Promise.<(Object|Error)>