Magento 1.7 Customer Session – Is There Customer Session Support via Magento’s REST API?

customermagento-1.7session

I'm working on extending wishlist functionality to Magento's REST api. It would be nice to access the customer's session. Does Magento have any support for accessing the customer's session via REST?

Best Answer

As mentioned in my comments above, I would recommend to provide a user login with oAuth to gain access to the customerID. To anwer your question: No, it's not possible to access the customer session.

The flow can be as follows:

  1. User accesses a 3rd party website where you want to provide the wishlist functionality
  2. User request wishlist/wishlist functionality (by adding a new item to wishlist, showing his wishlist etc.)
  3. User logs in via oAuth in your magento shop
  4. Retrieve customer ID from oAuth
  5. Proceed with your wishlist functionality

For the user Authorization, I recommend you follow the sections "Getting an Unauthorized Request Token" and "User Authorization" on this page.