Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Two-Factor Authentication with Vonage Verify APO

Two-Factor Authentication with Vonage Verify APO

Houssem Yahiaoui

July 13, 2022
Tweet

More Decks by Houssem Yahiaoui

Other Decks in Programming

Transcript

  1. Arguably, my best picture ever 🤓 But I love I

    secretly play Video games 🙈 I’m kinda good at it 👀 You typical geek
  2. Talk Promises : Tons of gifs 🤓 More code 🥳

    Less slides 🆒 Still, I might break this one 🙈 Sorry PDF readers 🤷 As I should 👀 2fa Authentication with Vonage Verify 🔓
  3. 🚨 Agenda : 🚀 Current State of the web ?

    Why it sucks ? 🚀 Why Vonage & What’s Vonage Verify API 🚀 Vonage Verify API Walkthrough & Demo 2fa Authentication with Vonage Verify 🔓
  4. This is the Internet Sweet, fun & happy place, but

    is it though ? 2fa Authentication with Vonage Verify 🔓
  5. 2fa Authentication with Vonage Verify 🔓 Who would use it

    ? Or “Need” it ? Financial Institutions for : Identification, Authorization, OTC , Onboarding..etc Any Social Media Platform for : Authentication, Notifications ..etc Any Backoffice Platform : For Auhentication, Authroization ..etc
  6. 2fa Authentication with Vonage Verify 🔓 But if you think

    about it for a second 🤔 EVERY SCENARIO WHERE CONFIRMING USER IDENTITY IS REQUIRED 💡 : THAT’S PRETTY MUCH EVERY USECASE
  7. 2fa Authentication with Vonage Verify 🔓 Let’s start with the

    obvious We Need to do lots of networking work Use a service focused Provider Spoiler Alert : You might not make it work With Criterias : Secure GloballyReliable Not trying to sell any other product Added value & Extra features
  8. 2fa Authentication with Vonage Verify 🔓 const Vonage = require('@vonage/server-sdk');

    const vonage = new Vonage({ apiKey: '#####', apiSecret: '########' }); vonage.verify.request({ number: '#user-number', brand: 'AwesomeCompany' // 18 Character Max }, (err, result) => { if (err) { console.error(err); } else { const { request_id : verifyRequestId} = result; // Redirect user to verify } }); 1 - Send a verificaAon SMS to user number
  9. 2fa Authentication with Vonage Verify 🔓 2 - Verify the

    received SMS code with requestion-id vonage.verify.check({ request_id: 'request-id', code: 'sms-code' }, (err, result) => { if (err) { console.error(err); } else { // Persist and move on with verification } });