Skip to main content

Questions tagged [token]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

AJAX and pure JS API token request break user session

API token request break user session if logged in, but request successful. The result is the same for $.ajax and pure JS fetch Tested on two projects let url = '<?php echo $this->getUrl('...
Max.A's user avatar
  • 107
0 votes
1 answer
18 views

Getting html page in response during get token using admin credentials in magento2

I tried to get an access token from Postman but received an HTML page in response. Here, the Magento base URL is https://www.qualityforms.com/. I don't know what settings need to be configured in the ...
Ranjeet Singh's user avatar
0 votes
0 answers
68 views

Magento 2 - Share session and customer data between subdomain and domain through access Token

I want to use custom magento checkout on a subdomain eg checkout.example.com. I have developed that one and getting customer data by access tokens. I want to share login information through access ...
Vipin 's user avatar
  • 31
0 votes
1 answer
135 views

customer acesss token never expiring JWT

I have created a customer access token using the below method // Magento\Integration\Model\Oauth\TokenFactory $customerToken = $this->tokenModelFactory->create(); $token = $customerToken->...
Rizwan Khan's user avatar
  • 1,939
0 votes
1 answer
99 views

How can I create my custom Reset Password Token

I am using plugin <type name="Magento\Customer\Model\AccountManagement"> <plugin name="custom_change_reset_password_link_token" type="Vendor\MobileApp\...
Syed Hassan Zamir's user avatar
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 = ''; ...
Deepak Mankotia's user avatar
0 votes
0 answers
79 views

The consumer isn't authorized to access %resources. Magento 2.3.3

Magento version 2.3.3 Admin token is successfully obtained using the API, however, when trying to fetch any resource using that token, I get this message: "The consumer isn't authorized to access ...
Seymur Rahimov's user avatar
0 votes
1 answer
339 views

How to reuse token bewteen magento and other jwt based platforms

I am using a customised login where token is generated from AWS Cognito. i am also adding some jwt claims to make the token usable with integration such as apollo .i want to use the same token for ...
Harish Vadaparty's user avatar
0 votes
1 answer
221 views

The consumer isn't authorized to access %resources. "resources": "Magento_Customer::manage"

magento is sending the next error when calling a GET API. Does anyone have the solution to the error? { "message": "The consumer isn't authorized to access %resources.", "...
Oier's user avatar
  • 1
0 votes
1 answer
1k views

How to get user id from JWT authentication Token in Magento 2.4.5

I am getting the Token from api call /V1/integration/customer/token I want to get the user id from this jwt token. How i can get it in magento2.4.5 ?
Syed Hassan Zamir's user avatar
0 votes
1 answer
373 views

How to disable Magento_JwtUserToken

I want to disable Magento_JwtUserToken Module but it is showing following error bin/magento module:disable Magento_JwtUserToken Unable to change status of modules because of the following constraints: ...
Syed Hassan Zamir's user avatar
1 vote
3 answers
2k views

How to create Access Token in Magento 2.4.5

I am creating the acess token using API /rest/default/V1/integration/customer/token. The Api is returning Access token successfully but it didnot saved in database in oauth_token table. also it is ...
Syed Hassan Zamir'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
1 vote
0 answers
248 views

Magento 2.4.2 - PayPal issues - A wrong PayPal Express Checkout Token is specified

We have a problem with our Magento 2.4 website with PayPal All-in-One Payment Solution (Website Payment Standard) payment method. Some of our customers are getting an error when trying to make a ...
Greg's user avatar
  • 2,739
1 vote
1 answer
169 views

Customer login not working after removing extension Magento 2 / Eway

I have removed a payment gateway extension - eway-rapid-magento2 - from my Magento 2.4.2 store. The site was working correctly before I removed this extension, now I am getting this logged error: ...
Adamf's user avatar
  • 43
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 ...
Amrita's user avatar
  • 1
3 votes
3 answers
5k views

Magento 2.4.4 - issue with setup:di:compile

I recently upgraded my site to Magento 2.4.4 with PHP 8.1 and noticed that when I try to run the command '$ php bin / magento setup: di: compile' the process stops at 1/9 with this error message : 1/...
Jackom's user avatar
  • 493
0 votes
1 answer
221 views

Magento2 Integration Token for Mobile Applications

We want to develop mobile applications for Android and iOS which will communicate through Magento2's REST APIs. What will be the proper way to pass the authorization token to access Magento2's ...
Reshad Zazai's user avatar
0 votes
1 answer
558 views

how to set never expire Customer token in Magento 2.4?

In magento 2.4, there is a field in System > Configuration > Service > Oath > Customer Token Lifetime (hours). This field is Mandatory field,I wanna set this one never expires, Anyone know ...
Niraj Patel's user avatar
1 vote
1 answer
955 views

Magento 2 Rest API get admin token

I am working on Rest API. I faced problems with the admin token. We are using an admin token with admin user name and password and then generated token use for admin-related API access. Can you please ...
Joy's user avatar
  • 17
0 votes
1 answer
98 views

How do I get Customer's Device Token for Android App in Magento 2

How to get customer's device token in order to send the notifications on customer device in Magento 2.
Hemant Kumar's user avatar
0 votes
1 answer
713 views

Magento 2: How to get Token via Rest API?

Magento 2: I want to get admin or customer token via Rest API. Early I used: End point POST / rest / <store_code> / V1 / integration / admin(or customer) / token Headings Content-Type / json app ...
Ihor Radzyil's user avatar
0 votes
1 answer
6k views

Magento 2: How to get Admin Token via Rest API in Postman?

Magento 2: I want to get admin token via Rest API. Early I used: End point POST / rest / <store_code> / V1 / integration / admin / token Headings Content-Type / json app Payload { "...
Ihor Radzyil's user avatar
0 votes
0 answers
214 views

Magento 2 - How to update Google Business Reviews Authorization Bearer Token?

I am using Google Business Review API, every time i manually copy and paste the token key, What is the best way to achieve this?
zus's user avatar
  • 175
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 ...
Rajeev K Tomy's user avatar
0 votes
0 answers
57 views

Customer Login, Products and Place Order REST APIs for React Native from an existing Magento 2 website

I've figured out how to login using customer credentials and get the token. I'm not able to fetch the products, categories with this token. Do I really need an admin token? Is it not safe to expose ...
Anandhu's user avatar
0 votes
1 answer
535 views

Is it good to use Access Token in Magento 2 for REST API?

I am using REST API for some product insertion process in my Controller File and i will used that Access Token to generate the token. Is it good to use that on my Live Website Code If not then what ...
Prits's user avatar
  • 625
0 votes
1 answer
2k views

Using REST API with admin username and password is good or safe in Magento 2

I am using REST API in Magento 2. For using in Guest user i want to create admin token so i have used CURL Request like this. $ch = curl_init(); $userData = array("username" => "...
Prits's user avatar
  • 625
2 votes
0 answers
179 views

How to get device token in order to use Firebase cloud messaging for Push Notifications in Magento 2?

I want to test firebase fcm on my Magento 2 app. But I am not able to get a device token. How will I get the device token in Magento 2?
Usama Sohail's user avatar
0 votes
0 answers
95 views

Getting Admin Auth Token

I'm new to Magento 2 software and trying to get some help to my scenario. One of our integration were failing to connect to our store API calls stating the expected response was json but getting HTML. ...
VidhyaSagar's user avatar
1 vote
0 answers
97 views

Magento 2 - REST API - How to create order for customer with admin token

I'm working on an app for Magento store. and I want to create an order for customers with my admin token. I found 2 ways: To get the customer credentials (user name and password) and create a queue - ...
ziv miz's user avatar
  • 11
1 vote
0 answers
71 views

M2 | Is there any observer we can call with customer token generation API?

I want to perform custom operation by getting customer information when a customer token is generated using API. rest/V1/integration/customer/token Is there a way in magento I can get customer data ...
Ajwad Syed's user avatar
  • 1,591
2 votes
1 answer
3k views

Magento 2: Where are the Token-based authentication access token stored?

I have been following along with this guide: https://devdocs.magento.com/guides/v2.3/get-started/authentication/gs-authentication-token.html This guide shows how a token can be requested and shows ...
J W's user avatar
  • 33
3 votes
1 answer
388 views

Why do authentication tokens only last an hour / How can I persist a user

I'm using magento 2.3 in a headless way via their rest & graphql api's. By default the auth tokens you get from magento (according to https://devdocs.magento.com/guides/v2.3/get-started/...
Jesco's user avatar
  • 31
0 votes
1 answer
52 views

How to get consumer key instead of full website HTML

I am very new to Magento and I have installed it on localhost. I have an integration which provided my a consumer key/secret. I was trying to get a consumer token in postman. What I am getting is the ...
Scorpy47's user avatar
1 vote
0 answers
509 views

Error while getting the access token(oAuth based authentication) through postman in magento v2.2

I must include oauth_verifier request parameter in the Authorization header in the postman call to get access token from request token through postman in magento v2.2, I could generate the access ...
Rumith Witharana's user avatar
2 votes
2 answers
606 views

Error while fetching a request token using postman

POST: http://127.0.0.1/magento/oauth/token/request This api returns an error in response: cannot create request token because consumer token is not a verifier token. oauth_problem=Cannot+create+...
Rumith Witharana's user avatar
1 vote
3 answers
438 views

You did not sign in correctly or your account is temporarily disabled:customer login

When I try to load /rest/v1/integration/customer/token, passing username and password in the body, it shows below error: { "message": "You did not sign in correctly or your account is ...
kuch bhi nhii's user avatar
1 vote
2 answers
402 views

Magento 2 REST API: Custom API with customer_token expecting string[] instead of string

I made an API which returns wishlist of a user using customer_token as authentication, obtained via this API: rest/V1/integration/customer/token My webapi.xml looks something like: <?...
Fokker's user avatar
  • 375
2 votes
1 answer
939 views

Retrieve guest cart using token in Magento 2

When you create a guest cart you will receive a token that may look like this "696EreQdYt2AAtEceQsHfD2gxGyWFodG" and you can use it to retrieve a guest cart that has an id number. I know how to ...
CodeEpistemology's user avatar
2 votes
2 answers
3k views

Magento 2 - Customer/Token Rest API issue

Customer is signup through rest api in magento 2.3 successfully. after signup, I am unable to get customer's token through customer/token rest api. Api returns following error: Any help, experience ...
Muhammad Hasham's user avatar
0 votes
1 answer
352 views

Magento variable for access token

currently I have hardcoded my API token in my controller, Need to make it configurable so that it can be configured when the code is deployed in production. So how can I store it on Magento variable ...
summu's user avatar
  • 847
6 votes
2 answers
7k views

How to use customer token to access my account Query or Mutation in GraphQl

I am using magetno 2.3.x and I want to access my account queries provided by Magento_CustomerGraphQl module. I have installed ChromeiQl to execute GraphQl. I set Site Endpoint as per syntax provided ...
Kapil Dev Singh's user avatar
5 votes
1 answer
5k views

Create and update rp_token in Magento 2

I'm trying to create customer account manually in my custom module. Customer account is getting created successfully and welcome email is sent to the new customer using $customer->...
sreelakshmi's user avatar
0 votes
1 answer
88 views

getting "Consumer is not authorized to access %resources" when using rest API in magento2

AUTH REST API: if(isset($_POST)){ print_r($_POST); $email=$_POST['email']; $pass=$_POST['pwd']; //$email='[email protected]'; //$pass='memo@123'; $userData= array("username"...
Mohammed R. Al-Shobaki's user avatar
2 votes
1 answer
1k views

Mage 2 Customer Token Error For Some Accounts

I have website with 5 customer test accounts. REST API calls have been working for a while now w/o a problem. Today, one customer account cannot get the customer token via REST API call (API response ...
pete19's user avatar
  • 163
5 votes
2 answers
3k views

Get customer details by using Authentication Token

I use this Magento 2 rest api to get customer token: curl -X POST "https://my.project/rest/V1/integration/customer/token" \ -H "Content-Type:application/json" \ -d "{"username":"me@awesome....
Tiny Dancer's user avatar
2 votes
1 answer
2k views

Magento 2 : How to programmatically create and display bearer token on admin screen?

Is it possible to create and display a bearer token in my custom admin setting screen for my plugin?. In short, I want to be able allow customer to install my plugin, copy a Bearer Token from the a ...
Dale O'Brien's user avatar
1 vote
0 answers
1k views

Invalid Login attempt while accessing Netsuite using SuiteTalk(Web Service)?

I am trying to get data from NS using WS. for that I'm using the following details in SoapUI: WHEN I SEND THE request I get the following response : Anyone had success with this or have any idea ...
M.spring's user avatar
0 votes
1 answer
689 views

Access token expires after 1 day

I am using the Quickbooks API for my application and I have used https://intuit.github.io/QuickBooks-V3-PHP-SDK/authorization.html generate-oauth-2-0-tokens for token generation. The token is created ...
Avesh Naik's user avatar
  • 1,219