IDP module for generating and authenticating consumer connections to UMS
Methods
# async inner authenticateAnonymousToken(accountId, connectorId, token) → {Promise.<string>}
Authenticates a given consumer anonymous token
Parameters:
Name | Type | Description |
---|---|---|
accountId |
string | the brand's accountId |
connectorId |
string | the connectorId of the ACR-0 connector |
token |
string | token generated from getAnonymousToken method, NOT the signup token |
token
# async inner getAnonymousToken(accountId) → {string}
Generates a consumer anonymous token
Parameters:
Name | Type | Description |
---|---|---|
accountId |
string | the brand's accountId |
- unAuth messaging feature is not enabled for accountId
- other errors
- token
# async inner getAuthenticatedToken(accountId, connectorId, jwtClaimsSet, lp_jwtopt) → {Promise.<*>}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
accountId |
||||
connectorId |
||||
jwtClaimsSet |
https://www.javadoc.io/doc/com.nimbusds/nimbus-jose-jwt/4.8/com/nimbusds/jwt/JWTClaimsSet.html |
|||
lp_jwt |
<optional> |
null | include a jwt from authenticateAnonymousToken in order to perform a stepup |
# async inner getMockAuthToken(accountId, customerName) → {Promise.<string>}
This will generate a mock auth flow JWT with SDEs that indicate: "Customer Name" is as provided "Customer ID" is lpTest{customerName}
Parameters:
Name | Type | Description |
---|---|---|
accountId |
string | |
customerName |
string |
token
# async inner getMockStepupToken(accountId, connectorId, token) → {Promise.<string>}
Takes an already authenticated UNAUTH token and steps it up
Parameters:
Name | Type | Description |
---|---|---|
accountId |
string | the brand's accountId |
connectorId |
string | the connectorId of the authenticated connector |
token |
string | authenticated token |
token
# async inner getSignupToken(accountId) → {string}
Generates a consumer signup token
Parameters:
Name | Type | Description |
---|---|---|
accountId |
string | the brand's accountId |
- JWT token