Skip to content

toddliningerdesign/astra-login-activity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Astra Login Activity extension for Magento 2

Supported Magento Versions BSD-3-Clause License

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.

Usage

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.

Configuration Options

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.

Astra Activity Dashboard

Installation

Tested with Magento 2.4.1, 2.4.2

Composer

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

Manual Installation

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

License

Astra Login Activity extension for Magento 2 is licensed under the BSD-3-Clause License - see the LICENSE file for details