Skip to content

Multi Factor Auth#954

Open
MukeshAbhi wants to merge 5 commits intostagefrom
MFA
Open

Multi Factor Auth#954
MukeshAbhi wants to merge 5 commits intostagefrom
MFA

Conversation

@MukeshAbhi
Copy link
Contributor

@MukeshAbhi MukeshAbhi commented Feb 13, 2026

Description

Closes #945

This PR introduces Time-Based One-Time Password (TOTP) based Multi-Factor Authentication (MFA) to enhance account security.

Overview

  • Implemented TOTP-based authentication using standard RFC 6238 compliant algorithm.
  • Added QR code generation for seamless setup with authenticator apps (e.g., Google Authenticator, Authy).
  • Added verification flow for validating one-time codes.
  • Securely stores MFA secret associated with the user.
  • Enforced TOTP validation during login when MFA is enabled.

API Changes

  • POST /mfa/enable – Generates secret and QR code.
  • POST /mfa/verify – Verifies TOTP code during setup/login.
  • POST /mfa/disable – Disables MFA after verification.
  • POST /mfa/cancel - Cancel MFA while in setup stage.
  • POST/mfa/sigin - Sign-In flow if MFA enabled.

What type of PR is this? (Check all applicable)

  • 🍕 Feature
  • ✅ Test

Screenshots (if applicable)

  • MFA Controller
image
  • Signin Controller
image
  • MFA Services
image

-Coverage Report
Services
image
Controller
image


Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@MukeshAbhi MukeshAbhi self-assigned this Feb 13, 2026
@MukeshAbhi MukeshAbhi marked this pull request as draft February 13, 2026 12:52
@MukeshAbhi MukeshAbhi added the enhancement New feature or request label Feb 13, 2026
@MukeshAbhi MukeshAbhi marked this pull request as ready for review February 16, 2026 16:31
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0.7.0 Multi-Factor Authentication

1 participant