{"id":30689317,"url":"https://github.com/genaker/freeadmin","last_synced_at":"2025-09-02T01:06:18.220Z","repository":{"id":310794845,"uuid":"1041251635","full_name":"Genaker/FreeAdmin","owner":"Genaker","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-20T08:20:57.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-30T10:59:49.011Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Genaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-20T07:57:39.000Z","updated_at":"2025-08-26T19:47:34.000Z","dependencies_parsed_at":"2025-08-20T09:39:19.180Z","dependency_job_id":"dc1dab51-e2b5-4093-9a6f-8d0c22ea0e3a","html_url":"https://github.com/Genaker/FreeAdmin","commit_stats":null,"previous_names":["genaker/freeadmin"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Genaker/FreeAdmin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genaker%2FFreeAdmin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genaker%2FFreeAdmin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genaker%2FFreeAdmin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genaker%2FFreeAdmin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Genaker","download_url":"https://codeload.github.com/Genaker/FreeAdmin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genaker%2FFreeAdmin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273214231,"owners_count":25065114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-02T01:06:05.059Z","updated_at":"2025-09-02T01:06:18.202Z","avatar_url":"https://github.com/Genaker.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Genaker FreeAdmin Module\n\n## Overview\nThis module allows free admin login when the Magento_Backend module is disabled in `app/etc/config.php`.\n\n## How It Works\nThe module uses a before plugin on `Magento\\Backend\\Model\\Auth::login()` method to:\n1. **Security Check**: Never bypass authentication in production mode\n2. Check if `Magento_Backend` module is disabled using Magento's `ModuleList` and `DeploymentConfig` classes\n3. If disabled AND not in production mode, bypass normal authentication by:\n   - First trying to find admin user by the provided email/username\n   - If not found, falling back to the first available admin user\n4. If enabled or in production mode, proceed with normal authentication\n\n## Installation\n\n### Method 1: Manual Installation\n1. Copy the module to `app/code/Genaker/FreeAdmin/`\n2. Enable the module:\n   ```bash\n   php bin/magento module:enable Genaker_FreeAdmin\n   ```\n3. Run setup:\n   ```bash\n   php bin/magento setup:upgrade\n   php bin/magento setup:di:compile\n   php bin/magento cache:flush\n   ```\n\n### Method 2: Composer Installation\n1. Add the module to your project's `composer.json`:\n   ```json\n   {\n       \"repositories\": [\n           {\n               \"type\": \"path\",\n               \"url\": \"app/code/Genaker/FreeAdmin\"\n           }\n       ]\n   }\n   ```\n2. Install via Composer:\n   ```bash\n   composer require genaker/free-admin:1.0.0\n   ```\n3. Run setup:\n   ```bash\n   php bin/magento setup:upgrade\n   php bin/magento setup:di:compile\n   php bin/magento cache:flush\n   ```\n\n## Usage\n\n### To Enable Free Admin Access:\n1. Set `backend/auth` to `false` in your deployment configuration (e.g., `app/etc/env.php`):\n```php\n'backend' =\u003e [\n    'auth' =\u003e false\n],\n```\n\n2. Clear caches:\n```bash\nphp bin/magento cache:flush\n```\n\n3. Now any username/password combination will work for admin login\n\n### To Disable Free Admin Access:\n1. Set `backend/auth` to `true` or remove the configuration in your deployment configuration:\n```php\n'backend' =\u003e [\n    'auth' =\u003e true\n],\n```\n\n2. Clear caches:\n```bash\nphp bin/magento cache:flush\n```\n\n## Security Warning\n⚠️ **IMPORTANT**: This module is for development/testing purposes only. \n- **Never bypasses authentication in production mode** - additional safety measure\n- It bypasses authentication when enabled by using existing admin users\n- Requires at least one admin user to exist in the system\n- Only works in development or default modes\n\n## Module Structure\n```\nGenaker/FreeAdmin/\n├── Plugin/\n│   └── Backend/\n│       └── Model/\n│           └── Auth/\n│               └── SimpleLoginPlugin.php\n├── etc/\n│   ├── di.xml\n│   └── module.xml\n├── composer.json\n├── registration.php\n└── README.md\n```\n\n## Troubleshooting\n\n### Module Not Working\n1. Check if module is enabled: `php bin/magento module:status Genaker_FreeAdmin`\n2. Verify plugin is loaded: `php bin/magento setup:di:compile`\n3. Clear caches: `php bin/magento cache:flush`\n4. We need also disable TWO FACTOR Auth modules \n\n## Customization\nTo modify the authentication bypass logic, edit `SimpleLoginPlugin.php` in the `beforeLogin` method.\n\n## Support\nFor issues or questions, check the module logs or contact the development team.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenaker%2Ffreeadmin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenaker%2Ffreeadmin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenaker%2Ffreeadmin/lists"}