All Questions
30 questions
0
votes
1
answer
118
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\...
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 ?
3
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 ...
0
votes
1
answer
232
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 ...
1
vote
1
answer
1k
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 ...
0
votes
1
answer
758
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
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
{
"...
2
votes
0
answers
185
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
0
answers
59
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
1
answer
582
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
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" => "...
1
vote
0
answers
109
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 - ...
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 ...
1
vote
0
answers
515
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 ...
1
vote
2
answers
403
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
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 ...
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"...
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 ...
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....
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 ...
0
votes
1
answer
704
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 ...
0
votes
0
answers
50
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
0
answers
353
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
3
answers
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
4
answers
8k
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
3
answers
6k
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/...
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 ...
1
vote
1
answer
1k
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 ...
7
votes
3
answers
13k
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@...
2
votes
0
answers
295
views
Error Using HTTPS to get the authentication token for Magento2 Rest
I am using Magento2 Rest API with token-based authentication.
http://example.com/index.php/rest/V1/integration/admin/token
It is working when using HTTP. However it doesnot work with HTTPS.
SSL ...