Hi Vaishakh,
I am at the same position as you...
I am not using the opencart sample. I am using the GIT PHP Client Library and integrating it with a WordPress installation.
This is what I have done:
1. Put GIT Javascript widget into WordPress
- Loaded the JQuery and Googlle API;'s in the header.
- Put the GIT JS code in header, and configured it for my server
- Added GIT "div" to the login position on page
2. Put GIT PHP Client Library on server
3. Edited config file /config/config.php
Specify location of names of local implementation files:
'externalClassPaths' : the names of the folder where your 'accountService' and 'sessionManager' implementation are stored. I put my files in the in git existing '/git/session' and '/git/data' directories
'externalClassPaths' => 'session,data',
'accountService': The name of your implementation of your local php AccountService. For example, if your file is named "myAccountService.php" it would be configed as:
'accountService' => 'myAccountService',
This accountService file implements the three functions named in the 'gitAccountService' implementation (see: gitAccountService.php)
'sessionManager': The name of your implementation of your local php SessionManager. GIT PHP Client Library included a sample seesion implementation: "gitSessionBasedSessionManage.php" which I have used as a starting point.
sessionManager' => 'gitSessionBasedSessionManager'
At this point the the GIT Toolkit works for me, in that it connects to the IDP (gmail) and returns the user's data.
4. Use your local Implementation files to integrate IDP data with your site
The next step is to take this the IDP data (e.g. users gmail account info), and use it to log in to the your local site, start a session, and save the user's account info. I think this should be donw customizing the /git/myAccountService.php and git/gitSessionBasedSessionManager.php files so that the take the IDP data and merge it with your site.
This is what I am working on now...