Identities provides a framework for generating and managing identity details and providers.
- Source:
Namespaces
Methods
(async) Identities(params) → {module:Identities~Identities}
Creates an instance of Identities.
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | One or more parameters for configuring Identities. Properties
|
- Source:
Returns:
An instance of Identities.
(static) useIdentityProvider(identityProvider)
Adds an identity provider.
Parameters:
Name | Type | Description |
---|---|---|
identityProvider |
IdentityProvider | The identity provider to add. |
- Source:
Throws:
-
Given IdentityProvider doesn't have a field 'type'.
-
Given IdentityProvider doesn't have a function 'verifyIdentity'.
-
-
IdentityProvider $ already added.
- Type
- IdentityProvider.type
-
Type Definitions
Identity
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
id |
string | A unique identifer for the identity. |
publicKey |
object | A public key. |
signatures |
object | A signed identity id and public key. |
type |
string | The type of identity provider. |
sign |
function | A sign function to sign data using this identity. |
verify |
function | A verify function to verify data signed by this identity. |
- Source: