Skip to main content

Questions tagged [oauth]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
4 answers
1k views

Magento 2 oauth request token Error

I having issue to request token with oauth https://www.host.com/magento2/oauth/token/request Error: oauth_problem=oauth_consumer_key+is+a+required+field%2C+oauth_signature+is+a+required+field%...
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}; ...
0 votes
1 answer
2k views

Magento 1.9 REST API Callback

so I just set up my M1.9 store, and want to set up a REST API. I wanted to test it out by retrieving a list of products. I only don't know what to put in the callbackurl field, online they say the ...
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 ...
2 votes
1 answer
1k views

Magento 2.4.3 UPS integration now that UPS requires OAuth?

Our UPS integration stopped working a couple weeks ago due to UPS disabling support for the old UPS Type connection in Magento 2.4.3. We are trying to get an alternate XML integration working but it ...
1 vote
1 answer
4k views

How do I provide a valid OAuth/NLAuth authorization header for NetSuite?

Being new to NetSuite and Post Man, I wanted to get my very first RESTlet up and working using Token Based Authentication which I have already set up, therefore I have: Account ID Application ID ...
1 vote
1 answer
7k 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 ...
0 votes
2 answers
4k views

Need Help To Connect Magento Rest Api using curl

I would like to use cURL to get all orders using rest API. Can I use cURL instead of Oath. I tried with cURL but returns 403 Forbidden. I have tried with below code : $params = array( "...
0 votes
1 answer
3k views

Magento 2 Oauth 2.0 with postman

I want to make an authorization through OAuth 2.0 through postman. I have setup an integration now what should I do next?
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 ...
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
0 votes
1 answer
99 views

Python & Rest API of 2.4.6

The code I used for my 2.4.2 Installation no longer works in my 2.4.6 Installation. It seems they deprecated HMAC-SHA1 in favour of HMAC-SHA256. requests_oauthlib doesn't support HMAC-SHA256 as far as ...
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=...
1 vote
3 answers
1k views

How to call Magento 2 Oauth 1.0 API for services without Callback & Identity URL?

We cannot integrate with 3rd Systems like ERP with Callback URL or Identity URL in some cases. The git repository available can be used to call Oauth request from PHP https://github.com/daviddesberg/...
0 votes
0 answers
69 views

Magento Getting Error "The signature is invalid. Verify and try again"

I am trying to use OAuth 1.0 in Bash script and I am getting error "The signature is invalid. Verify and try again". Can someone please let me know how to generate valid signature using bash....
0 votes
0 answers
70 views

OAuth 1.0 Authentication in UNIX Shell Script

I am new to Magento REST API. I have requirement of UNIX shell script Authentication : To generate token for OAuth 1.0 Authentication. Please let me know how do I generate Access Token and Token ...
1 vote
1 answer
111 views

OAuth-based authentication getting issue

hi i am trying to create OAuth-based authentication by following official doc https://devdocs.magento.com/guides/v2.3/get-started/authentication/gs-authentication-oauth.html but when i click on login ...
0 votes
1 answer
628 views

How to generate oauth 1 "oauth/token/request" in magento 2?

I am trying to generate oauth 1 oauth/token/request for magento 2, I am using the below code $characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'; $nonce = ''; ...
1 vote
1 answer
3k views

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

How do I 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-Consumer-Secret' ); I'...
0 votes
1 answer
556 views

How to use curl to communicate with magento api

I am trying to post some data to the magento api using curl and then get a response. I have searched around a bit and made a short code snippit that should do the job but it returns a blank string. I ...
0 votes
1 answer
59 views

Does Magento support Oauth for customers?

I went through the documentation at https://devdocs.magento.com/guides/v2.4/get-started/authentication/gs-authentication.html But it's not clear to me whether I can use it for customer authentication....
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" ...
1 vote
1 answer
211 views

Failed to Open Stream Error with OAuth token exchange example

I am following the OAuth token exchange example here running on Magento 2.4.1 on MAMP I created an integration and copied the 4 PHP files at the root of the server. I create an integration and set it ...
0 votes
2 answers
747 views

Magento 2 OAuth without a Callback URL

I need to integrate a back end application (i.e. without a GUI) with Magento 2 REST APIs. As such I believe I need to use OAuth for authentication. However, as it is a back end service, there will be ...
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) ...
1 vote
1 answer
2k 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 ...
0 votes
1 answer
590 views

Unable to generate request token using Postman

A request token is a temporary token that the user exchanges for an access token. I am unable to generate a request token using Postman for Adobe Commerce using Consumer Key and Consumer Secret which ...
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
1 vote
1 answer
2k 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 ...
1 vote
0 answers
770 views

Magento integration will not activate

I created a new integration, when I want to activate it, I do get a login pop-up from the external party. I enter my credentials and I got the following message, but the integration is not activated: ...
0 votes
1 answer
1k views

Do Magento 2 Integration OAuth Access Tokens Never Expire?

Hi I just want to make sure that if I created an integration via OAuth authentication I would use the access token of which for Magento 2 API calls. It is my experience that they never expire, is ...
0 votes
2 answers
566 views

Magento 2.2 integration callback URL is not receiving OAuth data

I'm trying to implement OAuth 1.0a in Magento 2.2. As per Magento docs, I created an integration, providing a Ngrok URL that points to localhost:8080 of my computer as the callback URL. However, when ...
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 ...
2 votes
0 answers
178 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

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 -> ...
1 vote
1 answer
530 views

magento2 call api test with postman : nonce validation error

After my integration is created and authorized, i'm trying to test the Magento REST API with Postman using the access token but an error related to nonce validation occurred. Any help please??
6 votes
1 answer
10k 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 ...
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....
3 votes
1 answer
579 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($...
0 votes
1 answer
851 views

The attempt to post data to consumer failed due to an unexpected error. Please try again later. Search Reset Filter

Сannot activates an integration of Magento 2.4 with my application on the localhost. I want to activate Magento integration for testing OAuth-based authentication, but I get the message: "The ...
0 votes
0 answers
102 views

Change the URL that integrations use in Magento 2

I'm Currently using Magento 2.3.4 and have a WAF setup which essentially functions as a reverse-proxy, which means that the integrations will not connect due to the site pointing to a different I.P. ...
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:...
1 vote
2 answers
592 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?...
2 votes
0 answers
225 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 ...
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 : ...
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 ...
2 votes
0 answers
229 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?
0 votes
1 answer
454 views

Magento2 soap/rest api for third-party consumer

I'm trying to create a webservice client for Magento2 api. I would like to know whether Magento2 supports oauth2 or oauth1.0. Could someone clarify if Magento2 SOAP API also requires oauth process?
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 ...
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&...