This extension adds the necessary API code for monitoring Magento 2 login activity in your Astra firewall dashboard. It allows you to choose whether you want to monitor admin logins, customer logins or both, showing both failed and successful login attempts for each. From the Astra dashboard you have the option to Trust or Block the user's IP address, if desired.
The extension was developed independently of Astra, based on their login activity API. Astra Website Security service (pricing) is required in order for login activity to be tracked.
As long as Astra has been installed on the server the extension will automatically begin monitoring admin logins. If you would also like to track customer logins, you can enable them in the configuration options under Security > Astra Login Protection.
Once installed, monitored logins should immediately begin appearing in the Activity section of your Astra dashboard. From there you have the option to Trust or Block the user's IP address, if desired.
Tested with Magento 2.4.1, 2.4.2
composer config repositories.toddlininger/astra git git@github.com:toddliningerdesign/astra-login-activity.git
composer require toddlininger/astraLoginActivity
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
Upload the files to app/code/ToddLininger/AstraLoginActivity
in your root Magento directory, then run:
composer require toddlininger/astraLoginActivity
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
Astra Login Activity extension for Magento 2 is licensed under the BSD-3-Clause License - see the LICENSE file for details