Giter VIP home page Giter VIP logo

wpcodevo / totp-rust Goto Github PK

View Code? Open in Web Editor NEW
24.0 1.0 4.0 19 KB

In this comprehensive guide, you'll learn how to implement two-factor authentication (2FA) in a Rust application using OTP tokens generated by an Authenticator app like Authy, Google Authenticator, or Chrome's Authenticator extension.

Home Page: https://codevoweb.com/rust-implement-2fa-two-factor-authentication/

Makefile 2.91% Rust 97.09%
actix-web otp otp-verification rust rust-api rustlang totp totp-tokens two-factor-auth two-factor-authentication

totp-rust's Introduction

Rust - Implement (2FA) Two-Factor Authentication

In this comprehensive guide, you'll learn how to implement two-factor authentication (2FA) in a Rust application using OTP tokens generated by an Authenticator app like Authy, Google Authenticator, or Chrome's Authenticator extension.

Rust - Implement (2FA) Two-Factor Authentication

Topics Covered

  • Run the Rust 2FA Project Locally
  • Run the Rust 2FA Project with a React.js App
  • Initialize the Rust Project
  • Setup an In-memory Database
  • Create Response Structs
  • Implement the Two-Factor Authentication
    • Register New User
    • Login User
    • Generate the TOTP Credentials
    • Verify the TOTP Token
    • Validate the TOTP Token
    • Disable the 2FA Feature
    • Merge the 2FA API Routes
  • Add CORS to the API Server
  • Test the Two-Factor Authentication Flow
    • Create an Account
    • Sign into the Account
    • Generate the 2FA QRCode
    • Verify the OTP Token
    • Validate the OTP Token
    • Disable the Two-Factor Authentication
  • Importance of Adding 2FA to a Rust App

Read the entire article here: https://codevoweb.com/rust-implement-2fa-two-factor-authentication/

totp-rust's People

Contributors

wpcodevo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.