Prezeráte obsah pomocníka verzie:

Deploying the necessary eCommerce packages will provide the full functionality of the eCommerce framework, together with a reference implementation of eCommerce functionality as provided with a Magento Commerce implementation (including a demonstration catalog).

Packages Needed for eCommerce with Magento

You need to download the following connector:


Installation of eCommerce with Magento

To install AEM with a Magento Commerce integration configuration, the basic steps are as follows. 

First in Magento:

  1. Instal the AEM Connector.

  2. Import the we.retail sample catalog.

Then in AEM:

  1. Instal the AEM / Magento 2 Connector package.

  2. Install the Demo AEM content package.



The AEM / Magento 2 connector uses standard AEM authentication mechanism (External Login Module) to support both login and registration against Magento. In order to allow authentication you need to configure the Magento 2 Identity Provider in AEM like so.

To configure the Identity Provider:

  1. Click Magento Identity Provider.

  2. Enter the following information:

    • Magento Server: Full URL of your Magento server

    • Admin Username: Magento admin user to connect to Magento (for non production / demo purposes)

    • Admin Password: Magento admin password 

  3. Click Save.

To configure the Sync Handler:

  1. Click Apache Jackrabbit Oak Default Sync Handler.

  2. Enter the following information:

    • Sync Handler Name: default
    • User Expiration Time: 1m

    • User auto membership: everyone
    • User property mapping:
      • rep:fullname=cn
      • profile/nt:primaryType="nt:unstructured"
      • profile/givenName=givenname
      • profile/familyName=familyname
      • profile/email=email
      • magento-token=token
    • User Path Prefix: /magento
    • User Membership Expiration: 1h
    • User membership nesting depth: 0
    • Group Expiration Time: 1d
    • Group auto membership: <leave blank>
    • Group property mapping: <leave blank>
    • Group Path Prefix: /magento
  3. Click Save.

The external login module is the bridge between the login, the idp and the sync handler, that's why a new configuration that pairs the new magento idp with the default sync handler is needed. To configure the external login module:

  1. Click Apache Jackrabbit External Login Module.

  2. Enter the following information:

    • JAAS Ranking: 50

    • JAAS Control Flag: SUFFICIENT

    • JAAS Realm: <leave blank>

    • Identity Provider Name: magento

    • Sync Handler Name: default 

  3. Click Save.