PHPackages                             samjuk/m2-module-auto-login-admin - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. samjuk/m2-module-auto-login-admin

ActiveMagento2-module[Authentication &amp; Authorization](/categories/authentication)

samjuk/m2-module-auto-login-admin
=================================

Automatically logins into the Admin panel, to a preset user

v1.0.0(1y ago)1744↑175%MITPHPPHP ^7.0|^8.0CI passing

Since Jan 26Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/SamJUK/m2-module-auto-login-admin)[ Packagist](https://packagist.org/packages/samjuk/m2-module-auto-login-admin)[ RSS](/packages/samjuk-m2-module-auto-login-admin/feed)WikiDiscussions master Synced 1mo ago

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

SamJUK\_AutoLoginAdmin
======================

[](#samjuk_autologinadmin)

[![Supported Magento Versions](https://camo.githubusercontent.com/ce19038d973ddb80b22e3a609dff07a3fa25b73fd346e8b3a5330f39ca06d01e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d322e342e34254532253830253933322e342e382d6f72616e67652e7376673f6c6f676f3d6d6167656e746f)](https://github.com/SamJUK/m2-module-auto-login-admin/actions/workflows/ci.yml)[![CI Workflow Status](https://github.com/samjuk/m2-module-auto-login-admin/actions/workflows/ci.yml/badge.svg)](https://github.com/SamJUK/m2-module-auto-login-admin/actions/workflows/ci.yml)[![GitHub Release](https://camo.githubusercontent.com/aae809e64ef0a34aaaa7709f668751139612ede6a8f12548f51c3ec4cb050b95/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f53616d4a554b2f6d322d6d6f64756c652d6175746f2d6c6f67696e2d61646d696e3f6c6162656c3d4c617465737425323052656c65617365266c6f676f3d676974687562)](https://github.com/SamJUK/m2-module-auto-login-admin/releases)

This module removes the Authentication step to access the admin panel, instead directly logs into a pre defined user.

It is aimed to be run within development and/or ephemeral environments only.

Whilst the module has protections builtin to avoid running in production, this code should never make it there to begin with.

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

[](#installation)

Installation may vary depending on your specific environment.

### Composer Dev Dependency

[](#composer-dev-dependency)

The recommended approach to installing the module is via a composer dev dependency. This should prevent the module from being installed on production/pre-production environments.

```
composer require samjuk/m2-module-auto-login-admin
php bin/magento module:enable SamJUK_AutoLoginAdmin
```

### Manual

[](#manual)

If for some reason your upstream environments are installing dev dependencies, you can opt for manual installation. Either at build time within your CI, or on the fly during deployment, by running the following from the project root.

```
[[ -d .git ]] && echo "app/code/SamJUK/AutoLoginAdmin" >> .git/info/exclude
mkdir -p app/code/SamJUK
git clone https://github.com/SamJUK/m2-module-auto-login-admin app/code/SamJUK/AutoLoginAdmin/
php bin/magento module:enable SamJUK_AutoLoginAdmin
```

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

[](#configuration)

The default configuration of the module is to do nothing, even in development environments. With the potential risk involved, I deem, its better for the end user to be implicit in their intent to use this module.

That said, post installation, the module can be enabled with the following command.

```
php bin/magento config:set -e samjuk_auto_login_admin/general/auto_login 1
```

A full breakdown of the available configuration is listed within the table below.

Config PathDefaultDescription`samjuk_auto_login_admin/general/auto_login``0`Boolean flag to enable the module`samjuk_auto_login_admin/general/username``admin`Admin username to Auto Login as`samjuk_auto_login_admin/general/skip_production_mode_check``0`Boolean flag, for if the module should run in production mode.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance61

Regular maintenance activity

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

478d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ee0b9faa791ec1a3b567e5e3668340aa9954c5f44ed536956d56ea3593584?d=identicon)[SamJUK](/maintainers/SamJUK)

---

Top Contributors

[![SamJUK](https://avatars.githubusercontent.com/u/7872420?v=4)](https://github.com/SamJUK "SamJUK (10 commits)")

---

Tags

magento-developmentmagento2-extensionmagento2-module

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/samjuk-m2-module-auto-login-admin/health.svg)

```
[![Health](https://phpackages.com/badges/samjuk-m2-module-auto-login-admin/health.svg)](https://phpackages.com/packages/samjuk-m2-module-auto-login-admin)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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