PHPackages                             hryvinskyi/magento2-two-factor-auth-bypass - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. hryvinskyi/magento2-two-factor-auth-bypass

ActiveMagento2-module[Security](/categories/security)

hryvinskyi/magento2-two-factor-auth-bypass
==========================================

Module for bypassing Magento 2 two-factor authentication via environment configuration

1.0.0(9mo ago)22791MITPHPPHP ^8.1

Since Sep 11Pushed 9mo agoCompare

[ Source](https://github.com/hryvinskyi/magento2-two-factor-auth-bypass)[ Packagist](https://packagist.org/packages/hryvinskyi/magento2-two-factor-auth-bypass)[ RSS](/packages/hryvinskyi-magento2-two-factor-auth-bypass/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Bypass Two Factor (2FA) Auth for Magento 2 (Adobe Commerce)
===========================================================

[](#bypass-two-factor-2fa-auth-for-magento-2-adobe-commerce)

This Magento 2 module developed for bypassing two-factor authentication on staging or development environments. It allows you to disable 2FA for admin panel access and API token generation via environment configuration (app/etc/env.php) or console commands.

Installation
------------

[](#installation)

### Manual Installation

[](#manual-installation)

1. Copy the module to `app/code/Hryvinskyi/TwoFactorAuthBypass/`
2. Run: `bin/magento module:enable Hryvinskyi_TwoFactorAuthBypass`
3. Run: `bin/magento setup:upgrade`
4. Run: `bin/magento setup:di:compile`

### Composer Installation

[](#composer-installation)

```
composer require hryvinskyi/magento2-two-factor-auth-bypass
bin/magento module:enable Hryvinskyi_TwoFactorAuthBypass
bin/magento setup:upgrade
bin/magento setup:di:compile
```

Configuration
-------------

[](#configuration)

### Manual Configuration

[](#manual-configuration)

Add the following configuration to your `app/etc/env.php`:

```
return [
    // ... other configuration
    'two_factor_auth_bypass' => [
        'enabled' => true,                // Bypass 2FA for admin access
        'api_enabled' => true,           // Bypass 2FA for API token generation
    ],
];
```

### Console Commands

[](#console-commands)

Alternatively, use the provided console commands:

```
# Enable bypass for both admin and API (default)
bin/magento hryvinskyi:2fa:bypass:enable

# Enable bypass for admin access only
bin/magento hryvinskyi:2fa:bypass:enable --admin

# Enable bypass for API token generation only
bin/magento hryvinskyi:2fa:bypass:enable --api

# Disable bypass for both admin and API (default)
bin/magento hryvinskyi:2fa:bypass:disable

# Disable bypass for admin access only
bin/magento hryvinskyi:2fa:bypass:disable --admin

# Disable bypass for API token generation only
bin/magento hryvinskyi:2fa:bypass:disable --api

# Check current bypass status
bin/magento hryvinskyi:2fa:bypass:status
```

### Configuration Options

[](#configuration-options)

OptionTypeDefaultDescription`enabled`boolean`false`Enable bypass for admin panel access`api_enabled`boolean`false`Enable bypass for API token generationRequirements
------------

[](#requirements)

- PHP 8.1+
- Magento 2.4.6+
- Magento\_TwoFactorAuth module

Support
-------

[](#support)

If you encounter any issues or have questions, please contact the author or open an issue on GitHub.

License
-------

[](#license)

This module is licensed under the MIT License - see the LICENSE file for details.

Author
------

[](#author)

Volodymyr Hryvinskyi Email: GitHub:

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance56

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

296d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9294098?v=4)[Volodymyr Hryvinskyi](/maintainers/hryvinskyi)[@hryvinskyi](https://github.com/hryvinskyi)

---

Top Contributors

[![hryvinskyi](https://avatars.githubusercontent.com/u/9294098?v=4)](https://github.com/hryvinskyi "hryvinskyi (1 commits)")

---

Tags

2fa2fa-security2factordevelopmentmagento2faTwo Factor Authenticationdevelopmentmagento2bypass

### Embed Badge

![Health badge](/badges/hryvinskyi-magento2-two-factor-auth-bypass/health.svg)

```
[![Health](https://phpackages.com/badges/hryvinskyi-magento2-two-factor-auth-bypass/health.svg)](https://phpackages.com/packages/hryvinskyi-magento2-two-factor-auth-bypass)
```

###  Alternatives

[tzsk/otp

A secure, database-free One-Time Password (OTP) generator and verifier for PHP and Laravel.

244672.1k1](/packages/tzsk-otp)[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[imi/magento2-friendly-captcha

Friendly Captcha integration for Magento2

19131.4k](/packages/imi-magento2-friendly-captcha)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1860.2k](/packages/myparcelnl-magento)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

1310.9k2](/packages/opengento-module-category-import-export)[angeo/module-llms-txt

Magento 2 module for AI Engine Optimization (AEO). Generates spec-compliant llms.txt and llms-full.txt per llmstxt.org standard, plus streaming JSONL for vector indexing. Multi-store, multi-website, CLI, cron, async admin UI, Page Builder-aware sanitization, customer-group pricing, atomic writes, ETag/Cache-Control, .md mirrors.

111.1k](/packages/angeo-module-llms-txt)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
