-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from websharp/release/r1.2.0
Updated docs to match Magento2 marketplace regulations
- Loading branch information
Showing
47 changed files
with
131 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Api/Data/Collection/WhitelistEntryCollectionFactoryInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,60 @@ | ||
# Force Frontend Customer Login Module for Magento2 | ||
|
||
The *Force Frontend Customer Login* Module for **Magento2** redirects a storefront visitor to the Magento2 Frontend login page, | ||
if the visitor is not logged in. It is possible to configure the whitelisted urls to add custom definitions. | ||
|
||
## Use Case | ||
|
||
Merchants provide some closed up products for only a specific group of users, e.g. enterprise related business partners and must assure only these partners can see the website or the product catalog. | ||
|
||
## Features: | ||
|
||
* Force your guest visitors to log in first (or register), before allowing them to visit your pages and catalog | ||
* Administration: Manage the whitelist rules by the GUI in the administration area | ||
* ACL: Restrict the administration of whitelist rules to certain backend user groups | ||
* Whitelisting: Define url rules as pattern to define which pages guest visitors can visit without logging in first | ||
* Multistore-Support: Define if whitelist rules either apply globally or for specific stores | ||
|
||
## Installation | ||
|
||
The preferred way of installing `bitexpert/magento2-force-customer-login` is through Composer. Simply add `bitexpert/magento2-force-customer-login` | ||
as a dependency: | ||
|
||
``` | ||
composer.phar require bitexpert/magento2-force-customer-login | ||
``` | ||
|
||
## How to configure the module | ||
|
||
### Navigation | ||
|
||
Navigating through the *Magento 2* backend menu by clicking onto **Customers** you must see a new menu entry **Forced Login Whitelist**. | ||
Enter this menu entry. | ||
|
||
![alt text](./resources/ui_step_01.png "UI Navigation") | ||
|
||
### Overview Grid | ||
|
||
You can add new entries by clicking on the *Add Entry* button in the upper right corner ( **1** ), [see below](#detail-form). | ||
The grid ( **2** ) contains all existing whitelisted *Url Rules*, for which the forced redirect to the *Customer Login Page* is omitted. | ||
The *Url Rules* ( **3** ) are part of a regular expression checking on the called *Url* and tries to match against the whitelist. | ||
*Url Rules* may be related to all stores or to a specific one ( **4** ). All rules except some mandatory ones are editable ( **5** ) and removeable ( **6** ). | ||
|
||
![alt text](./resources/ui_step_02.png "UI Grid") | ||
|
||
### Detail Form | ||
|
||
You can return to the *Overview Grid* by using the *Back* button ( **1** ). The *Label* value has only declarative character and | ||
is for information purpose only ( **2** ). The *Url Rule* is part of a regular expression checking on the called | ||
*Url* and tries to match against the whitelist ( **3** ). *Url Rules* may be related to all stores or to a specific one ( **4** ). | ||
Persist the rule by using the *Save* button ( **5** ). | ||
|
||
![alt text](./resources/ui_step_03.png "UI Form") | ||
|
||
## Contribution | ||
|
||
Feel free to contribute to this module by reporting issues or create some pull requests for improvements. | ||
|
||
## License | ||
|
||
The Magento2 Frontend Customer Force Login Module is released under the Apache 2.0 license. | ||
# Force Login Module for Magento® 2 | ||
The **Force Login** Module for *Magento® 2* allows you to restrict which pages a visitor is | ||
able to see. Visitors get redirected to the login page if the page is not marked visitable. | ||
The **Force Login** Module for *Magento® 2* is especially useful for merchants serving only a specific | ||
group of users, e.g. enterprise related business partners and need to ensure that only those users are | ||
able to browse the the website or the product catalog. | ||
|
||
## Features: | ||
* Force your guest visitors to log in first (or register), before allowing them to visit your pages and catalog | ||
* Administration: Manage the whitelist rules by the GUI in the administration area | ||
* ACL: Restrict the administration of whitelist rules to certain backend user groups | ||
* Whitelisting: Define url rules as pattern to define which pages guest visitors can visit without logging in first | ||
* Multistore-Support: Define if whitelist rules either apply globally or for specific stores | ||
|
||
## Installation | ||
The preferred way of installing `bitexpert/magento2-force-customer-login` is through Composer. Simply add `bitexpert/magento2-force-customer-login` | ||
as a dependency: | ||
|
||
``` | ||
composer.phar require bitexpert/magento2-force-customer-login | ||
``` | ||
|
||
# User Guide | ||
Find the complete user guide [here](./docs/UserGuide.pdf "User Guide"). | ||
|
||
## How to use | ||
The usage of the **Force Login** Module for *Magento® 2* is applied implicitly by redirecting visitors | ||
if the called URI does not match any configured whitelisted url rules. | ||
|
||
## How to configure | ||
|
||
### Navigation | ||
Navigating through the *Magento® 2* backend menu by clicking onto **Customers** you must see a new menu | ||
entry **Forced Login Whitelist**. | ||
|
||
Enter this menu entry. | ||
|
||
![alt text](./resources/ui_step_01.png "UI Navigation") | ||
|
||
### Overview Grid | ||
You can add new entries by clicking on the *Add Entry* button in the upper right corner ( **1** ), [see below](#detail-form). | ||
The grid ( **2** ) contains all existing whitelisted *Url Rules*, for which the forced redirect to the *Customer Login Page* is omitted. | ||
The *Url Rules* ( **3** ) are part of a regular expression checking on the called *Url* and tries to match against the whitelist. | ||
*Url Rules* may be related to all stores or to a specific one ( **4** ). All rules except some mandatory ones are editable ( **5** ) and removeable ( **6** ). | ||
|
||
![alt text](./resources/ui_step_02.png "UI Grid") | ||
|
||
### Detail Form | ||
You can return to the *Overview Grid* by using the *Back* button ( **1** ). The *Label* value has only declarative character and | ||
is for information purpose only ( **2** ). The *Url Rule* is part of a regular expression checking on the called | ||
*Url* and tries to match against the whitelist ( **3** ). *Url Rules* may be related to all stores or to a specific one ( **4** ). | ||
Persist the rule by using the *Save* button ( **5** ). | ||
|
||
![alt text](./resources/ui_step_03.png "UI Form") | ||
|
||
## Contribution | ||
Feel free to contribute to this module by reporting issues or create some pull requests for improvements. | ||
|
||
## License | ||
The **Force Login** Module for *Magento® 2* is released under the Apache 2.0 license. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Test/Unit/Observer/LoginRequiredOnCustomerSessionInitObserverUnitTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.