##############################################################################
INSTALLATION INFORMATION(STEP) FOR OPENCART MODULE
##############################################################################
Manual Installation:
-
Unzip the main module directory.
-
Select preferred version of Opencart SSO module according to your Opencart version.
- OpenCart_2.0.x.x-to-2.1.x.x folder for Opencart Version 2.0.x.x to 2.1.x.x
- OpenCart_2.2.x.x folder for Opencart Version 2.2.x.x
- OpenCart_2.3.x.x folder for Opencart Version 2.3.x.x
- OpenCart_3.x.x.x folder for Opencart Version 3.x.x.x
-
Upload both admin and catalog directories into your Opencart's root directory.
-
After uploading directories, go to your browser and run Opencart and login to admin side.
-
Go to Users->User Groups and edit desired group(specially admin) and then give access and modify permission to all the uploaded files.
-
Now install module by heading towards Admin->Extension->Modules (Admin->Extension->Extensions->Modules for Opencart 2.3.x.x and upper).
Key Points:
-
You need to create an app under the Opencart SSO module and get the client_id and secret. Redirect url will be the url where you want to receive the apptoken.
-
For getting the customer information, you need to hit the url: Opencart Site URL /index.php?route=account/wkocuvdssologin&client_id=place app clinet id here &redirect_url= place app redirect_url here.
-
After successfull login with the previous link, authorize the information access and after authorization you will be redirected to the specified redirect_url. Receive the app token here in the get request.
-
Now call the url: Opencart Site URL /index.php?route=account/wkocuvdssologin/getJWTToken with the post parameter apptoken.
-
You will get the jwt_token encoded with the clinet secret using the jwt library.Use client secret to decode the the data.