Questions tagged [token]

The tag has no usage guidance.

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

How to manage customer token lifetime for mobile application [REST API ENDPOINT]

I make Magento mobile application I don't know How to manage customer token lifetime. I create a customer token for customer login, The token has a lifetime of 4hr /rest/default/V1/integration/...
0
votes
1answer
51 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 ...
0
votes
1answer
216 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 { "...
0
votes
1answer
100 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?
2
votes
0answers
56 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 ...
0
votes
0answers
28 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 ...
0
votes
1answer
30 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 ...
0
votes
1answer
243 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" => "...
0
votes
0answers
48 views

Magento 2 - Token for reset password form not generated

Sorry if i repeat this question but i prefer for a better explanation. The issue is when i try to submit reset password form return this error message: "Something went wrong while saving the new ...
2
votes
0answers
50 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?
0
votes
0answers
10 views

Want to create REST API Admin access authentication in module ? And get last order json data magento 2

I have found below code in magento stack exchange. but i dont know where to put this code in custom modules. $userData = array("username" => "admin", "password" => &...
0
votes
0answers
42 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. ...
1
vote
0answers
37 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 - ...
1
vote
0answers
22 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 ...
1
vote
1answer
225 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 ...
1
vote
1answer
22 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/...
0
votes
1answer
13 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 ...
1
vote
0answers
163 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 ...
2
votes
2answers
141 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+...
1
vote
3answers
171 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 ...
1
vote
2answers
283 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: <?...
2
votes
1answer
277 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 ...
2
votes
2answers
1k 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 ...
0
votes
1answer
82 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 ...
4
votes
2answers
2k 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 ...
5
votes
1answer
2k 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->...
0
votes
1answer
75 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='memotest@gmailtest.com'; //$pass='memo@123'; $userData= array("username"...
2
votes
1answer
720 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 ...
4
votes
2answers
2k 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....
2
votes
1answer
811 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 ...
1
vote
0answers
813 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 ...
0
votes
1answer
575 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 ...
1
vote
1answer
893 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 ...
0
votes
0answers
46 views

How to get Orders using Customer Token?

I want to access orders using customer token in rest API of Magento. Is it possible?
1
vote
0answers
262 views

Magento2 REST API token validity

As magento2, provides rest service to generate token for customer rest/V1/integration/customer/token Token expiration is provided from here We are planning to use headless magento approach, with ...
0
votes
2answers
1k views

You did not sign in correctly or your account is temporarily disabled. In Magento 2 Admin panel Token

I am getting this error "You did not sign in correctly or your account is temporarily disabled" during generating admin token in magento 2.1.12. But admin panel is login with same username and ...
0
votes
4answers
6k views

Magento 2 token integration error

I can able to get token from http://example.com/magento2/rest/V1/integration/admin/token with Username & Password. Using this token, I can request product details on http://example.com/magento2/...
1
vote
4answers
561 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%...
0
votes
3answers
5k views

SOLVED - Api token request Curl returns NULL

I am trying to get a token from my Magento 2 API, my script returns NULL, the call is working fine in Postman and generating a token : $adminUrl='https://www.xxxxxxx.com/rest/V1/integration/admin/...
0
votes
0answers
31 views

For customer token creation by REST Api,Token is been return unknow format or extra length. In magento 2

For customer token creationby REST Api,Token is been return unknow format or extra length. In magento 2,Can anyone have any idea why it is return unknow length or so.Please find the below screen shot....
3
votes
1answer
664 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 ...
0
votes
1answer
445 views

Is their any Way to create client token for braintree with api in magento 2

I would like to generate a client token for brain tree paypal payment as a response,How can i solve,please any idea.any help would be appreciated.
0
votes
1answer
94 views

Customer Access Token

I am trying to get the customers Access Token while they are logged in to our Magento 2.1.8 site while using a custom module I am developing. I have been following the official Magento 2 tutorials ...
1
vote
0answers
257 views

Braintree & Magento 2.2 Client Tokens

Please forgive my ignorance. I've been successfully building & managing Magento 1 stores for a few years and I usually manage to muddle my way through server configurations & installs with ...
1
vote
0answers
150 views

Magento 2 Payment not being captured [closed]

I have a problem with OnePageCheckout. Using Magento ver 2.1.8, AheadWorks OnePageCheckout extension and World Pay as a payment gateway. I get this error: Payment failed, please try again later One ...
1
vote
2answers
8k views

how to access token of REST Api in magento 1.9.3.1?

Hi i searched the around google about this, but nothing find. can anyone help me to access the token from rest api in magento. I tried this code in a php file on root and getting blank screen(no ...
1
vote
1answer
954 views

Get User Details by Access Token From Admin

I have two servers which are written in yii2 and magento respectively. The yii2 application has file module and magento has commerce and user module. the current problem is whenever user needs to ...
3
votes
1answer
1k views

magento 2 view model set payment additional data before place order

I am adding a token in payment additional data getData: function () { return { 'method': "pay_cc", 'additional_data': { 'token_code': ...
1
vote
1answer
1k views

how to capture braintree using customer token in magento2

I enabled vault feature in Braintree.In frontend by default customer should store their credit card(force fully) at checkout. For example, the customer places an order value with $100. Now I ...
4
votes
3answers
8k views

Magento2 How to set expiration time for token

I Have generated a token for API calls by using following code : curl -X POST "http://magento2.ce/rest/V1/integration/customer/token"\ -H "Content-Type:application/json"\ -d '{"username":"john@...