Skip to main content

Questions tagged [oauth]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
17 votes
1 answer
4k 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 ...
Bhavna Gupta's user avatar
9 votes
1 answer
7k 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 ...
Fabian Schmengler's user avatar
9 votes
1 answer
689 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 ...
M Kraan's user avatar
  • 91
8 votes
1 answer
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 ...
user2636834's user avatar
8 votes
1 answer
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'...
user3136050's user avatar
7 votes
3 answers
5k 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&...
srikanth's user avatar
6 votes
1 answer
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. (...
Alana Storm's user avatar
  • 44.4k
6 votes
1 answer
9k 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 ...
quickshiftin's user avatar
  • 1,426
5 votes
2 answers
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 ...
Alana Storm's user avatar
  • 44.4k
5 votes
2 answers
584 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 ...
Carson Reinke's user avatar
5 votes
1 answer
7k 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 ...
Ralph's user avatar
  • 351
5 votes
1 answer
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 ...
RavatSinh Sisodiya's user avatar
5 votes
1 answer
428 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&...
H.K.Suthar's user avatar
5 votes
1 answer
984 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 ...
Java_Waldi's user avatar
5 votes
0 answers
3k 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=...
sparecycle's user avatar
  • 1,469
4 votes
3 answers
5k 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. ...
Alana Storm's user avatar
  • 44.4k
4 votes
2 answers
7k 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....
Alana Storm's user avatar
  • 44.4k
4 votes
1 answer
558 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 : ...
zus's user avatar
  • 175
4 votes
0 answers
95 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 ...
SalesforceElearner's user avatar
4 votes
1 answer
72 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 ...
mohsin's user avatar
  • 41
3 votes
2 answers
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 ...
Alana Storm's user avatar
  • 44.4k
3 votes
1 answer
943 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, ...
Nevuroth's user avatar
3 votes
1 answer
576 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($...
maniramav's user avatar
3 votes
1 answer
3k 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 [...
Alana Storm's user avatar
  • 44.4k
3 votes
2 answers
5k 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
Nimmagadda Sankarshana's user avatar
3 votes
1 answer
1k 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 ...
jaspersk's user avatar
3 votes
0 answers
491 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 ...
Shubham Talodiya's user avatar
3 votes
0 answers
544 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 ...
Thomas Bernhard's user avatar
2 votes
4 answers
1k views

Access Token Expiration settings have no effect

I tried to change the default customer access token expiration from 1 hour to 48 hours and even to 0 to disable expiration, but regardless of what number I enter, the token I receive from the REST API ...
Pethő Jonatán's user avatar
2 votes
2 answers
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) ...
user2636834's user avatar
2 votes
1 answer
740 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?
Ryan Gates's user avatar
2 votes
1 answer
600 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 ...
Josh's user avatar
  • 151
2 votes
1 answer
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 ...
Niranjan B's user avatar
  • 1,232
2 votes
1 answer
2k views

Magento 2 Oauth request token - oauth_problem=Invalid+signature

Magento 2 Oauth error invalid signature while try to get request token from postman
Hariharan's user avatar
  • 253
2 votes
1 answer
3k 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:...
Jonathan Clark's user avatar
2 votes
2 answers
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 ...
Christian Grabowski's user avatar
2 votes
1 answer
582 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 ...
KiwisTasteGood's user avatar
2 votes
1 answer
266 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:/...
ZMH's user avatar
  • 21
2 votes
0 answers
177 views

What is Cleanup Probability Settings For OAuth

I am not getting the implementation of Cleanup Probability settings which you can find at Stores > Configuration > Services > OAuth > Cleanup Settings > Cleanup Probability. From the ...
Rajeev K Tomy's user avatar
2 votes
0 answers
1k views

Composer install .zip could not be downloaded

When I run composer install I get the error message: [Composer\Downloader\TransportException] The "https://repo.magento.com/archives/magento/module-invitation/magento-module-invitation-100.3.5.0.zip" ...
Armando Silva's user avatar
2 votes
0 answers
1k views

Magento 2.3.4 and OAuth 1 oauth_problem=Consumer+key+has+expired

I'm going crazy with OAUTH1 and Magento 2.3.4 (Ubuntu + Nginx 1.14 + PHP 7.3) I get always oauth_problem=Consumer+key+has+expired My Backend configs: I've configured an Integration (System -> ...
Tarichecco's user avatar
2 votes
0 answers
224 views

How to correctly use "self" resource in Magento 2 webapi.xml

I have created some endpoints in a module that have a resource of "self" When I call the request using a jQuery ($.post) I get an Not allowed to accesses resource "self". These requests are done on ...
Logic4Life's user avatar
2 votes
0 answers
227 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?
BornCoder's user avatar
  • 1,508
2 votes
1 answer
5k views

The signature is invalid - Magento 2 Oauth 1 Rest API Authentication

I need to generate access token for third party extension in Magento. I create integration, now I should sent request to /oauth/token/request in order to get a request token, but I get following ...
Nigar Jafar's user avatar
2 votes
0 answers
139 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,...
Aditya Shah's user avatar
  • 7,627
2 votes
0 answers
135 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 ...
Vishwas Bhatnagar's user avatar
2 votes
0 answers
2k 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 ...
Prim's user avatar
  • 121
2 votes
1 answer
5k views

Consumer is not authorized to access %resources REST API

I use MAGENTO 2 REST API in MobileFIrst project (Worcklight) in my adapter : function _retrieve(token) { if (!token) return { 'isSuccessful': false, 'errorMsg' : 'params is ' + params}; ...
Gommez's user avatar
  • 43
2 votes
0 answers
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 ...
Sundar's user avatar
  • 699
1 vote
2 answers
590 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?...
Alana Storm's user avatar
  • 44.4k