Questions tagged [oauth]
The oauth tag has no usage guidance.
100
questions
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 ...
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 ...
9
votes
1
answer
665
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
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 ...
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'...
7
votes
3
answers
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
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. (...
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 ...
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 ...
5
votes
2
answers
552
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
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 ...
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 ...
5
votes
1
answer
425
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
1
answer
959
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 ...
5
votes
1
answer
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=...
4
votes
3
answers
4k
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
2
answers
6k
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....
4
votes
1
answer
492
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
0
answers
86
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
1
answer
68
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 ...
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 ...
3
votes
1
answer
939
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
1
answer
522
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
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
[...
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
3
votes
1
answer
850
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
0
answers
468
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
0
answers
531
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
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) ...
2
votes
1
answer
732
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
3
answers
527
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 ...
2
votes
1
answer
555
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
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 ...
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
2
votes
1
answer
2k
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
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 ...
2
votes
1
answer
567
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
1
answer
265
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
0
answers
126
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 ...
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" ...
2
votes
0
answers
179
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 ...
2
votes
0
answers
176
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
0
answers
137
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
0
answers
119
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
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 ...
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 ...
1
vote
2
answers
534
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
1
answer
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
1
answer
1k
views
Magento 2.4.4 oAuth
I'm trying to set up an integration on Magento 2.4.4 but this is not working.
The other side are reporting this error coming from Magento:
"Signature method HMAC-SHA1 is not supported"
Other ...
1
vote
1
answer
1k
views
Unable to get access_token for Magento2.0
I am doing OAuth1 authentication for Magento2.0. I am referring this doc: https://devdocs.magento.com/guides/v2.0/get-started/authentication/gs-authentication-oauth.html.
I am trying to do this ...