Questions tagged [oauth]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
17
votes
1answer
3k views

Not able to get OAuth token for Magento Rest API Client

I am using Magento version 1.9.1.0 and server running on my mac and trying to use Magento Rest APIs using OAuth Integration. I have a consumer key and consumer secret. Now, I want to get OAuth token ...
9
votes
1answer
6k views

How to access the Magento API from native client with JavaScript

I need to access the Magento API from a local JavaScript based application (Titanium Desktop) and wondering what's the best way to do so. What I found out so far: The only authentication mechanism ...
9
votes
1answer
645 views

Magento OAuth callback url ignored

I was working on a user authentication within an App i'm building. The idea is that I will have customers login via the OAuth of Magento and afterwards it must get the Customer_id of that user. But ...
8
votes
1answer
2k views

Getting started with Magento REST API

So the official documentation is very terse (bad!), particularly for someone who hasn't worked with REST/Oauth in the past. I'm using Magento 1.8.1 CE. Can somebody provide a simple PHP example of ...
8
votes
1answer
1k views

REST api call for Guest user

Developing android native application using scribe library, and uses Rest based web services from existing Magento based eCommerce platform. I have got prerequisite requirement like 'Key' and 'Secret'...
7
votes
3answers
4k views

oauth_signature invalid error while using Magento Rest API with GET filters

I'm having a hard time fetching orders from Magento REST API when I use its GET filters like http://localhost/magento/api/rest/orders/?filter[1][attribute]=entity_id&filter[1][gt]=70&page=1&...
6
votes
1answer
3k views

Magento 2: Soap Credentials

Poking around the codebase and some questions here it looks like Magento 2 -- much to the chagrin of certain segments of the web development community -- will still support SOAP API endpoint. (...
6
votes
1answer
8k views

How to acquire access token for an integration in Magento2

In Magento2 when you create an integration, how do you get an Access Token? It seems OAuth is the recommended approach for a third-party service, per the documentation. Getting an Access Token is a ...
5
votes
2answers
4k views

Magento REST API: What populates the api2_acl_attribute Table?

I'm trying to run through the oAuth/REST examples on the Magento website and I'm hitting a snag. I've successfully created a consumer key and a consumer secret, and used these to fetch an ...
5
votes
1answer
6k views

OAuth - 401 oauth_problem=signature_invalid

I try to authenticate against a magento server (1.7.0.2) REST API using OAuth. I am using the java scribe api. But I got always a http error 401 'signature_invalid'. This is the complete debug ...
5
votes
2answers
458 views

What am I missing with OAuth token exchange process?

Magento has two important documents that outline how OAuth 1.0a authentication/authorization works (here and here). There also appears to be a Magento sponsored example of OAuth. There are two ...
5
votes
1answer
2k views

Added product via REST API OAuth not retrieved and not able to update via REST API

After adding product to Magento run http://mymagentohost/api/rest/products/40 it will return Resource not found but if just open product from Magento and click on save (without changing anything) than ...
5
votes
1answer
389 views

Magento Rest API

I want to use the Magento rest API for my application, when I will call the API from postman tool at that time there showing me error as per below: oauth_problem=parameter_absent&...
5
votes
1answer
892 views

Magento2 REST auth help needed

I'm hanging on this issues for nearly a week and cannot find any sollution. I'm trying to send a REST request to my new Magento2 store. It worked allready, but then the oauth/token forced ...
4
votes
3answers
3k views

Magento 2: How can I Revoke an Authorization Token

Per the Magento 2 developer documentation When you make web API calls, you supply this token in the Authorization request header with the Bearer HTTP authorization scheme to prove your identity. ...
4
votes
1answer
249 views

How to solve REST API with oAuth 1.0 Return 404 error in Magento 1.9.2.3?

Workout: Version : Magento 1.9.2.3 Created Rest oAuth Consumer oAuth 1.0 installed in Server Got the Token Key, Token secret using Consumer key & Consumer secret which created in step 1 Note : ...
4
votes
0answers
74 views

Salesforce Magento integration

I'm implementing salesforce magento integration through REST API callout. I have successfully got the response from magento and saved it in salesforce database. But facing issue while using ...
4
votes
1answer
62 views

life-span and scope of oAuth Acess token

I'm working on Magento OAuth for integration with a third party app.I have a couple of questions: For how much time span an access token remains valid? What is the scope of token based authorization ...
4
votes
1answer
2k views

Magento's REST API responses claiming oauth_callback param is empty

Working with Magento CE 1.9. I'm attempting to make use of Magento's API however I keep running into the same error in my response: oauth_problem=parameter_absent&oauth_parameters_absent=...
3
votes
2answers
2k views

Where in Magento 2's Backend Can you Change the Expiration Time for an oAuth Token Request?

As per Magento's developer documentation site This is the first step in the 2-legged Oauth handshake. However, you must use these credentials to get an access token in fewer than three minutes or ...
3
votes
1answer
929 views

Getting current customer in custom REST API module

I'm trying to build a series of custom requests for an Android app. Specifically I need to make use of the current customer Id in several of my requests. I've only been using magento for a few weeks, ...
3
votes
2answers
4k views

Magento 2: Where does the oAuth verifier token come from

Per the developer documentation, when making a request for an access token, you need to include a verifier token oauth_verifier. The verification code that is tied to the consumer and request token....
3
votes
1answer
2k views

Magento 2: Successful oAuth/Integration Flow

Does anyone have or know of working PHP code to complete an oAuth API integration request flow? I've gotten past the activation step, and my application has the following information [...
3
votes
1answer
628 views

Neither Token nor Oauth API Authentication are working Magento 2.2.3

Upon activating Oauth in Magento admin, there is no request sent to the callback URL. If I try to setup normal token authentication, there are no tokens provided. I followed the documentation for ...
3
votes
1answer
309 views

Magento 2 Oauth Integration Error

I followed Magento Doc and created checklogin.php, endpoint.php, login.php and OauthClient.php. As the doc says in checklogin.php, there is $credentials = new \OAuth\Common\Consumer\Credentials($...
3
votes
0answers
382 views

Invalid signature error on rest-api retrieve products

I want to retrieve all products from magento website through rest api. I am trying to connect to my Magento API but keep getting an invalid signature error. i have all integration details like ...
3
votes
0answers
491 views

3rd party OAuth integration with Java

I'm following the documentation http://devdocs.magento.com/guides/v2.1//get-started/authentication/gs-authentication-oauth.html and I'm a little stuck. Basically I want to make REST calls from my ...
2
votes
1answer
1k views

OAuth for REST API using PHP

I'm looking for a working example of a PHP script for authentication using OAuth. I have followed the testing instructions here (http://www.magentocommerce.com/api/rest/testing_rest_resources.html) ...
2
votes
1answer
717 views

What version supports REST API/OAuth

What is the minimum version of Magento that exposes/supports a REST API and OAuth support? Is there any support for REST API and OAuth in Magento 1.5.1?
2
votes
1answer
2k views

OAUTH Flow in Magento2

I need to create the Rest API in magento in 1.x or 2.x and I need to expose to the third party , I have doubt on the authentication how its going to be carried out for the OAUTH ->How the 3rd party ...
2
votes
1answer
527 views

Cannot Create OAuth Consumer

I am trying to set up OAuth access to an API for a site running 1.9.3.2. All of the Magento instructions say: You can register your application by selecting System > Web Services > REST - OAuth ...
2
votes
1answer
1k views

Magento 2 OAuth API - Consumer key has expired

I've created an integration in System->Extensions->Integrations and allowed all access. I'm using Postman to test the API, but I'm getting error: Consumer key has expired. I've tried cache:...
2
votes
2answers
1k views

Client Side OAuth

So I'm trying to make a SPA that uses Magento 1.9.2.2 as its back office. To do this, I would like to use its REST API. And of course, it forces you to OAuth with Magento first. I have tried ...
2
votes
1answer
519 views

Magento OAuth - Automatically log customers in from external site

Basically I have a Magento installation that an external company is filling with customers as they sign up for their external customer portal using an API. When a user is logged into this companies ...
2
votes
1answer
261 views

Magento 1.7 doesn't return token key

I installed magento 1.7 and test for rest api according to this link. http://www.aschroder.com/2012/04/introduction-to-the-magento-rest-apis-with-oauth-in-version-1-7/ When I request to this http:/...
2
votes
0answers
64 views

How to implement Oauth2 in magento 2?

I have a third party application which want to access magento api using Oauth2. Is there any extension or method which can help me in this?
2
votes
1answer
3k views

Oauth 2.0 in Magento 2.2 with how to access the token

Can please give example to access the magento 2 api by using oauth 2
2
votes
0answers
115 views

How to Manage API Authentication Lifecycle on Mobile Devices? Magento2

Every hour regeneration of token and after that login again every hour is not logical for Mobile Application. Then how Magento manages user login data and authentication in Mobile application,...
2
votes
1answer
919 views

Magento 2 Oauth request token - oauth_problem=Invalid+signature

Magento 2 Oauth error invalid signature while try to get request token from postman
2
votes
0answers
74 views

Magento2 : Best way to handle Multi Device login using REST API Auth

I am creating an auth token for mobile customer using /V1/integration/customer/token When I use the same customer credentials in Second mobile device the first auth token is invalidated as the ...
2
votes
0answers
1k views

Magento oAuth : Generating access token and access secret

I understand that the authentication endpoints include the following ones: /oauth/initiate - this endpoint is used for retrieving the Request Token. /oauth/authorize - this endpoint is used for user ...
2
votes
0answers
2k views

How to call localhost/magento/oauth/initiate?

I am trying to call the above url to initiate the oauth tokens. I am following the below link http://www.magentocommerce.com/api/rest/authentication/oauth_authentication.html Can u tell me what s the ...
1
vote
2answers
312 views

Magento 1: Where is oauth_admin.php

The rest documentation for Magento 1 make mention of an oauth_admin.php file $callbackUrl = "http://yourhost/oauth_admin.php"; $temporaryCredentialsRequestUrl = "http://yourhost/oauth/initiate?...
1
vote
1answer
5k views

Access Pre-Authorized Rest API

I'm trying to call Magento REST API with pre authorized access token, I thought it would be easy but for some reason i cant get it to work, i mean i have the four components required, the consumerKey, ...
1
vote
1answer
4k views

Connecting to Magento Rest API by python

I'm new to Magento API and actually a python programmer, there are some APIs I should connect to them through Rest and I stick to the first step of authentication with OAuth for getting access tokens ...
1
vote
1answer
2k views

How to configure postman with magento 1.9 complete beginner

I don't know how to configure my Magento 1.9 with the postman. I don't know how to check my API for postman (or any else). I need to complete my work within 1 day but I don't know anything about ...
1
vote
1answer
2k views

Get Customer Login into Magento1.9.x mobile app using REST api

I have a magento website and I am trying to make a android app for it. I have configured the oauth authentication to consume magento rest api and also tested it with postman. Till now everything is ...
1
vote
1answer
1k views

Rest api oauth token empty

I'm trying to use REST API access. I followed all the guides found to enable the api and oauth functionalities. I'm using this code to retrieve the access and then make the request <?php class ...
1
vote
1answer
2k views

How to create oauth_signature for OAuth-based authentication using Magento 2.0 REST API

How to understand how to create an oauth_signature for OAuth-based authentication in Magento 2.0 REST API requests? Assuming I use PHP's hash_hmac: hash_hmac ( 'sha1' , $string , 'Integrations-...
1
vote
1answer
2k views

How to create REST API in Magento 2?

i'm new to Magento 2, i am assigned to create a HTML search form which take input as a CustomerID and return the Customer info associated with that CustomerID, using oAuth and REST API. I have no ...