View on GitHub

pb.bank

A starter online banking application built with Worklight, Angular and Bluemix services

Download this project as a .zip file Download this project as a tar.gz file

Class: DoubleStepAuthAdapter

pb.bank. DoubleStepAuthAdapter

new DoubleStepAuthAdapter()

This adapter accesses a backend db to perform credential checks
Source:

Members

(static) userIdentity

Properties:
Name Type Description
userIdentity object holds info received from backend
Source:

Methods

(static) onAuthRequired(headers, errorMessage) → {object}

the login function
Parameters:
Name Type Description
headers object
errorMessage string
Source:
Returns:
data JSON structure indication if authorization is required
Type
object

(static) onLogout()

the logout function
Source:

(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
Source:
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
Source:
Returns:
data JSON structure indication if authorization is required
Type
object