Module

idp

IDP module for generating and authenticating consumer connections to UMS

View Source services/idp.js, line 5

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

View Source services/idp.js, line 73

token

Promise.<string>

# async inner getAnonymousToken(accountId) → {string}

Generates a consumer anonymous token

Parameters:
Name Type Description
accountId string

the brand's accountId

View Source services/idp.js, line 39

  • unAuth messaging feature is not enabled for accountId
Error
  • other errors
Error
  • token
string

# 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

View Source services/idp.js, line 97

Promise.<*>

# 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

View Source services/idp.js, line 167

token

Promise.<string>

# 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

View Source services/idp.js, line 142

token

Promise.<string>

# async inner getSignupToken(accountId) → {string}

Generates a consumer signup token

Parameters:
Name Type Description
accountId string

the brand's accountId

View Source services/idp.js, line 16

  • JWT token
string