kandy-cpaas2-sample-2fa

2FA

This app is used to create communication channel between two users via 2FA APIs.

User manual

  1. Create an account on AT&T portal via Register now for a free account.
  2. Open an instance of index.html in the browser for a User.
  3. Enter the server URL, for e.g.,
  4. Choose to get accessToken by Password Grant flow or Client Credentials flow.
  5. Login using User’s credential in the browser window.
  6. For Password Grant flow, enter
    • clientId
    • emailId
    • password
  7. For Client Credentials Grant flow, enter
    • privateKey
    • privateSecret
  8. Click Login
  9. You may proceed to Authenticate via SMS or Authenticate via Email.
  10. When Authenticating via SMS, enter the phone number in E164 format in which you want to receive the SMS code. You can verify the code once received in the same page. Use Resend OTP provided if you didn’t validated the code already.
  11. Same procedure can be done for Authenticating via Email by entering the email ID on which you want to receive the email code.
Notes

Development

To setup the project repository, run these commands

git clone https://github.com/hclsampleapps/kandy-cpaas2-sample-2fa.git
cd kandy-cpaas2-sample-2fa

Then, open index.html in the browser to view the app.

Branching strategy

To learn about the branching strategy, contribution & coding conventions followed in the project, please refer GitFlow based branching strategy for your project repository