Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento SOAP WebService -> User Login

I'm writing a web service for communication between a mobile device and magento, i'm using SOAP webservices which Magento provides, however, i'm lost at User Authentication, i need to authenticate my system user (not api user). Is there any clue over this?

like image 519
Syed Absar Avatar asked Nov 04 '22 21:11

Syed Absar


2 Answers

You cannot use SOAP Api for logging an user account in magento as it does not support that feature, you have to approach it in another way, maybe overriding controller file in Mage Customer named AccountController.php.

Try to add a new method which can communicate with server with JSON variable.

like image 133
chanz Avatar answered Nov 09 '22 12:11

chanz


You can use REST api to authenticate customer. http://www.magentocommerce.com/api/rest/introduction.html

This approach seems to be more convenient, since you may receive a products list with applied catalog rules for logged in customer (let's say applied by customer group). SOAP API does not provide such feature (you can only receive products list as admin user).

like image 22
dan.kocherga Avatar answered Nov 09 '22 13:11

dan.kocherga