Force Login USER GUIDE

Similar documents
Admin Product Grid Category Filter

In this tutorial, we will show you how to easily add your store to your Facebook fan/business page, just in two simple steps.

Delete Orders User Guide

Ajax login Magento2 Extension

Quick Start Manual. Not2Order for Magento 2. Start here

MexBS Google Invisible Recaptcha v1.0.0 User Guide

Store Login Access extension for Magento2. User Guide

extension for Magento2 User Guide

5. Enable and configure Stripe in Magento Admin under Stores/Configuration/Payment Methods/Stripe

Easily communicate with customers using up-to-date, customized templates. Allow customers to return products as an existing customer or guest.

Magento 2 Extension. ( Version ) STORE.DCKAP.COM

Magento 2 Extension. ( Version ) STORE.DCKAP.COM

Magento 2 Extension. ( Version ) STORE.DCKAP.COM

Twitter & Facebook Login v2.x Extension Installation for Magento 2 From Plumrocket Documentation

rm -rf pub/static/*; rm -rf var/view_preprocessed/*; php -f bin/magento setup:staticcontent:deploy

[ 5 ] If you are in developer or default mode, run the following commands:

Php4u Payment Restrictions Module for Magento 2

Custom Carrier Trackers

EASYPAY MODULE - MAGENTO 2

Category Dynamic Dependent Dropdown

Advanced Product Grid extension for Magento2. User Guide

FAQ Manager Ask Questions Magento2 Extension

Magento Pinterest Extension User Guide

SIMICART USER GUIDE SERIES. SimiCart Install SimiConnector

Magento 2 Extension. ( Version ) STORE.DCKAP.COM

Stockbase Extension Magento 2.0

Stock Notification Magento2 Extension

Product Questions/Answers extension for Magento2. User Guide. version 1.0. Website: Page 1

GDPR PRO FOR MAGENTO 2

How to Migrate from Drupal Commerce to Magento

CUSTOMER APPROVAL FOR MAGENTO 2

Customer Redirect Pro for Magento 2

Magento 2 Extension. ( Version ) STORE.DCKAP.COM

This guide will show you how to install and configure Fastly CDN extension for Magento 2.

Magento 2 Extension. ( Version ) STORE.DCKAP.COM

Control for CloudFlare - Installation and Preparations

USER GUIDE MAGENTO TO MAGENTO MIGRATION

Import Export Products Attributes

Magento 2 Shipping Flat Rate5. Quick start guide

Magento 2 Extension. ( Version ) STORE.DCKAP.COM

Google Tag Manager. Google Tag Manager Custom Module for Magento

FREE AJAX SUITE. User Guide FOR MAGENTO 2. Version: Release Date: Product Page: Ajax Suite. Support:

User Guide. Customer Activation. Extension Version User Guide Version Magento Editions Compatibility

Review Reminder extension for Magento2. User Guide

Configuring Autocomplete & Suggest

Price Alert extension for Magento2. User Guide

Magento 2 Extension. ( Version ) STORE.DCKAP.COM

USER GUIDE StarTrack Shipping (Magento 2) Compatibility:

User Guide. Order Attachments. Extension Version User Guide Version Magento Editions Compatibility

Import Export URL Rewrites for Magento2 Extension

Fastly_Cdn Module Installation Instructions

USER MANUAL. Star Track Shipping TABLE OF CONTENTS. Version: 2.0.0

Call For Price extension User Manual

FME Extensions Advanced SEO Friendly Blog Extension for Magento 2 User Guide - Version

Indian GST extension User Manual

DPD France Shipping Method Module Magento 2

PayPalPlus Magento 2 User's Guide

Instagram Widget User Guide

TABLE OF CONTENT. Overview Support Versions Getting Started Guide Install by Copying Files Configuration...

Import Export Newsletter Subscribers for Magento2 Extension

Cart Product Selector. Quick Start Guide

Web Push Notification

Infinite Scroll extension for Magento2. User Guide

Mobile Login extension User Manual

rm -rf pub/static/*; rm -rf var/view_preprocessed/*; php -f bin/magento setup:staticcontent:deploy

ADMIN PRODUCT PREVIEW PLUS FOR MAGENTO 2 USER GUIDE

Purpletree SMS for Magento2

HiConversion Customer Experience Optimization

1. Installation Instructions

GeoIP Redirect for Magento 2

STRIPE PAYMENTS FOR MAGENTO 2 - DOCUMENTATION

Analytics for Magento 2.0

GUEST CHECKOUT TO REGISTERED CUSTOMERS

Blast Search Lucene Search Module for Magento 2

YMM Products Parts Finder

Quickbooks Connector Quick Start Guide

Magento 2 / Google Maps Integration User Guide For Extension Version 1.0.2

PagSeguro Payment. User Guide

HiConversion Customer Experience Optimization

J2T SMS Gateway Extension for Magento 2 Documentation for v. 2.0.x

Payments. Magento2 Module User Guide for v4.0.x

Cache Warmer How to install the extension. How to upgrade extension. Disabling the Extension

IMPORT/EXPORT URL REWRITES FOR MAGENTO 2. User Guide. User Guide Page 1

Triveneto payment method for Magento 2

B2B Wholesale Private Shop

1. Installation Instructions

User Guide. How it works? Contents. This guide is available at Github Wiki: alsoviewed/wiki

Improved Import / Export Magento 2 Extension Manual. Manual for Improved Import / Export extension for Magento 2

User Guide. Image Gallery. Extension Version User Guide Version Magento Editions Compatibility

Size Chart. User Guide v1.0.0

Lazy Load Images Extension for Magento 2

Aitoc. Product Custom Options Management User Manual for Magento 2

Magento 2 Guide ING. Guide 1

Configuring Autocomplete & Suggest

Custom Registration Field For Magento2

1

1. Installation Instructions

Flexslider v2.x Installation and User Manual

Facebook Pixel for Remarketing for Magento 2

GeoIP - Magento 2 USER MANUAL MAGEDELIGHT.COM E:

Transcription:

Force Login for Magento 2 USER GUIDE Version 2.1

Table of Contents Introduction... 2 Authors... 2 Features... 2 Installation... 3 Post-Install... 3 System Upgrade... 3 Clear Cache... 3 How to use... 4 Whitelisting... 4 How to configure... 5 Administration... 5 Navigation... 5 Overview Grid... 6 Detail Form... 7 Strategies... 7 Static... 7 RegEx-All... 7 Contribution... 7 License... 7 Introduction The Force Login module for Magento 2 allows you to restrict which pages a not logged in user is able to see. Not logged in visitors get redirected to the login page. This module 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. Authors The authos of the Force Login module for Magento 2 is the bitexpert AG 1 and is maintained by Stephan Hochdörfer (S.Hochdoerfer@bitExpert.de) and Florian Horn (F.Horn@bitExpert.de). 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 1 http://www.bitexpert.de

Installation The preferred way of installing the Force Login module for Magento 2 is through Composer 2. Simply add `bitexpert/magento2-force-customer-login` as a dependency: composer.phar require bitexpert/magento2-force-customer-login Optional you can download the latest version here and install the decompressed code in your projects directory under app/code/bitexpert/forcecustomerlogin. Post-Install After the installment of the module source code, the module has to be enabled by the Magento 2 CLI. bin/magento module:enable bitexpert_forcecustomerlogin System Upgrade After enabling the module, the Magento 2 system must be upgraded. If the system mode is set to production, run the compile command first. This is not necessary for the developer mode. bin/magento setup:di:compile To upgrade the system, the upgrade command must be run. bin/magento setup:upgrade Clear Cache At last, the Magento 2 should be cleared by running the flush command. bin/magento cache:flush Sometimes, other cache systems or services must be restarted first, e.g. Apache Webserver and PHP FPM. 2 https://getcomposer.org/

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. Whitelisting Whitelisting is based upon the usage of rules. The strategy selection defines how the rules are interpreted, more details are listed in the Strategies section. By default, some static rules are already listed. The following example shows, how to add a whitelist entry for the homepage (startpage). 1. Navigate to the Overview Grid and use the Add Entry button. 2. Enter Homepage into the text field beside from the Label label. 3. Enter /?$ into the text field beside from the Url Rule label. 4. Select All Stores from the selection field beside from the Store label. 5. Use the Save button in the upper menu. After being redirected to the Overview Grid, the new entry should appear to the list and the systems homepage should be available for guest visitors.

How to configure Administration The Force Login module for Magento 2 allows you to enable or disable the module itself on the level of websites, stores and store views. If the module is disabled, the whitelist ruling and the redirection are not applied. If the module is enabled based upon the configuration, the whitelist rules are process, which themselves are also configurable for all enabled stores or just specific ones. After installing and enabling Force Login module for Magento 2 with the CLI, you must be able to navigate to Stores > Configuration > Force Login, where you are able to configure the availability of the module for each website, store and store view. In the administration configuration, you are also able to setup the URL the redirecting is targeting to if not whitelist rule is matching. Navigation As shown in figure 1, navigate through the Magento 2 backend menu by clicking onto the item Customers. You must see a new menu entry Forced Login Whitelist. Enter this menu entry.

Overview Grid A shown in figure 2, you can add new entries by clicking on the Add Entry button in the upper right corner (1). 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).

Detail Form As shown in figure 3, 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). The strategy selection (5) defines how the Url Rule is interpreted, more details are listed in the Strategies section. Persist the rule by using the Save button (6). Strategies Static Rule is used as a literal value and will be added onto the base url for matching. This is default behaviour. RegEx-All Rule is based on regular expression 3, and will be used for looking up matching anywhere in the current Url. Contribution Feel free to contribute to this module by reporting issues or create some pull requests for improvements on the github page of the Force Login module for Magento 2 4. License The Force Login module for Magento 2 is released under the Apache 2.0 license 5. 3 https://en.wikipedia.org/wiki/regular_expression 4 https://github.com/bitexpert/magento2-force-login 5 https://github.com/bitexpert/magento2-force-login/blob/master/license