This document will walk you through the installation process for the Gigya Extension for Magento 2.0.
Installing the Gigya Extension for the First Time
- You need a Magento username and password to successfully complete this installation. If you do not yet have a Magento account, you can create one according to Magento documentation, e.g. here and here.
- After running setup:upgrade, you may be prompted to run compilation mode. Compilation in Magento is not necessary when testing and configuring the site.
Step 1 - Get the Extension
To get the extension:
- Download the latest Magento 2 GConnector here: Gigya Developer Downloads
- Extract the contents of the .zip file to a local folder outside your Magento installation.
Initialize the folder as a git repository by running the following from the command line:
Add the extracted files to Git using the following command:
Commit the changes to Git using the following command:
- Once both the Magento GConnector is hosted locally, Log in via SSH (if necessary) and navigate to the Magento installation root.
Add the Gigya repositories by typing the following commands (replace "/folderPathTo" with the actual folder path of the extracted zip file from steps 2-6):
These modifications will write to Magento's root composer.json file.
Add the Gigya module and its dependencies and update:If you experience problems with this step, make sure your root composer.json file supports non-stable versions. For example, you may need to remove the line prefer-stable:true and set minimum-stablility to beta.
Still connected to the server using SSH, enable the module by running:
Perform a Magento upgrade using the following command:
Don't forget to clear the Magento cache after this process as well as after carrying out any other change.
2. Create a Gigya Application Key and Application Secret
To keep your Gigya data secure, your Gigya Extension will connect to Gigya using a unique Application Key, used only by this extension.
Along with the Application Key, you will be assigned an Application Secret as a password.
3. Encrypt Your Application Secret
Generate a Key
Generate any random 32-character hexadecimal key. Any method to do so can be used. For example:
Save the generated key inside Magento's "var" directory, e.g. "var/enc.key".
Encrypt the Secret
Use the generated key to encrypt your application secret. In Magento's root directory, run the following commands:
Save the resulting string in the database by running the following SQL query :
Disabling the Gigya Extension
To disable the Gigya extension, run the following command: