Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email

Magento Forum

OAuth issue, Android, magento community edition
Jr. Member
Total Posts:  1
Joined:  2012-10-01

Hello guys,
I m using the fresh magento community I would like to espose services through rest/json. Thus, i need to use OAuth security.
I would like to use signpost since it’s really lightweight. Unfortunately, i can’t get any request token, the sample code below:

CommonsHttpOAuthProvider provider = new CommonsHttpOAuthProvider(DataHelper.REQUEST_TOKEN_ENDPOINT_URLDataHelper.ACCESS_TOKEN_ENDPOINT_URLDataHelper.AUTHORIZE_WEBSITE_URL);
CommonsHttpOAuthConsumer consumer = new CommonsHttpOAuthConsumer(DataHelper.CONSUMER_KEYDataHelper.CONSUMER_SECRET);

Always return error code 401 with signature_invalid.
It appears magento is in some way not compatible yet with signpost, or am i doing something wrong ? I used the sample code to access other API and it’s just working.

If it’s actually not working, any hint of the best practices? Other ways to use OAuth need 50 jars, i don’t want to start with a 10 megs APK.

Thank you all for your help,


Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top