petkow Posted September 6, 2013 Share Posted September 6, 2013 (edited) I know the topic of integrating prestashop into another website with a common login has been discussed before in the forums, but I wanted to revive the discussion and see if there are any new ideas. I have an existing website with its own user database that already has already has all the existing fields that would normally exist in the prestashop user database. A user would arrive to prestashop only through this existing website and only while already being logged onto it. One of the new options for him/her will be something like "Access the Shop". My thoughts are as follows: 1. Activate web services in my prestashop 2. Allow my existing website to consult if the user already exists in Prestashop (via the API) or if his/her existing record has any changes 3. Create a new record if the user does not exist or amend it if there are changes. This would occur without the user noticing by just reading data from my existing table and inserting into Prestashop via the API. 4. Log the user onto Prestashop seamlessly (thereby creating a new Prestashop cookie) 5. Disable all forms of access to the Prestashop login and Prestashop User area 6. On future logins I would also have to check if the user is already logged into Prestashop Am I more or less on the right track? After spending a day investigating webservices, and downloading the PHP webservice library and some very useful PHP example files from https://github.com/PrestaShop/PrestaShop-webservice-lib I am comfortable with stages 2 and 3. I then perform the login in stage 4 using the email and password from the existing session and sending it via POST to /index.php?controller=authentication Is there an easier way to do all of this such as with a single sign on? Does anybody else have any leads or experience with doing something like this? Thank you very much in advance. p.s. The posts in the forum that I have consulted so far are: http://www.prestashop.com/forums/topic/204227-webservice-and-check-if-user-is-logged-in/http://www.prestashop.com/forums/topic/156218-solvedish-integrating-prestashop-into-a-pre-developed-website/http://www.prestashop.com/forums/topic/230605-is-it-possibile-to-integrate-login-and-user-address-from-external-app/ http://www.prestashop.com/forums/topic/231938-forcing-access-to-prestashop-via-another-website/ Edited September 6, 2013 by petkow (see edit history) Link to comment Share on other sites More sharing options...
jleger Posted April 2, 2014 Share Posted April 2, 2014 Hi i'm facing the same issue, anyone have somme feedback ? Link to comment Share on other sites More sharing options...
athenasoft Posted September 27, 2014 Share Posted September 27, 2014 Hi, this seams to be a unanswered question. Any pointers about how to solve this will be highly appreciated. I've been looking after LDAP or Open Directory modules for PrestaShop, but nothing seam to be available. Thanks Link to comment Share on other sites More sharing options...
hpar Posted September 29, 2014 Share Posted September 29, 2014 Hi, Is there an easier way to do all of this such as with a single sign on? Does anybody else have any leads or experience with doing something like this? Yes, I have created a library for that : https://github.com/hparfr/prestashopBridge. It works. 1 Link to comment Share on other sites More sharing options...
athenasoft Posted September 29, 2014 Share Posted September 29, 2014 Thanks hpar. This is pretty close to what I need. I'll test it ASAP. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now