Class: EntityStorageAuthenticationAdminService
Implementation of the authentication component using entity storage.
Implements
IAuthenticationAdminComponent
Constructors
Constructor
new EntityStorageAuthenticationAdminService(
options?):EntityStorageAuthenticationAdminService
Create a new instance of EntityStorageAuthentication.
Parameters
options?
IEntityStorageAuthenticationAdminServiceConstructorOptions
The dependencies for the identity connector.
Returns
EntityStorageAuthenticationAdminService
Properties
CLASS_NAME
readonlystaticCLASS_NAME:string
Runtime name for the class.
Methods
className()
className():
string
Returns the class name of the component.
Returns
string
The class name of the component.
Implementation of
IAuthenticationAdminComponent.className
create()
create(
password,userIdentity,organizationIdentity):Promise<void>
Create a login for the user.
Parameters
email
string
The email address for the user.
password
string
The password for the user.
userIdentity
string
The DID to associate with the account.
organizationIdentity
string
The organization of the user.
Returns
Promise<void>
Nothing.
Implementation of
IAuthenticationAdminComponent.create
remove()
remove(
Promise<void>
Remove the current user.
Parameters
email
string
The email address of the user to remove.
Returns
Promise<void>
Nothing.
Implementation of
IAuthenticationAdminComponent.remove
updatePassword()
updatePassword(
newPassword,currentPassword?):Promise<void>
Update the user's password.
Parameters
email
string
The email address of the user to update.
newPassword
string
The new password for the user.
currentPassword?
string
The current password, optional, if supplied will check against existing.
Returns
Promise<void>
Nothing.
Implementation of
IAuthenticationAdminComponent.updatePassword