new DoubleStepAuthAdapter()
This adapter accesses a backend db to perform credential checks
Members
-
(static) userIdentity
-
Properties:
Name Type Description userIdentity
object holds info received from backend
Methods
-
(static) onAuthRequired(headers, errorMessage) → {object}
-
the login function
Parameters:
Name Type Description headers
object errorMessage
string Returns:
data JSON structure indication if authorization is required- Type
- object
-
(static) onLogout()
-
the logout function
-
(static) submitAuthStep1(email, password)
-
called by the challenge handler to perform the first step of by the submitAuth functions
Parameters:
Name Type Description email
string the userid for the user record password
string MD5 hash of the password Returns:
data JSON structure indication if authorization is required -
(static) submitAuthStep2(pin) → {object}
-
called by the challenge handler to perform the second step of by the submitAuth functions
Parameters:
Name Type Description pin
string the 4 digit pin Returns:
data JSON structure indication if authorization is required- Type
- object