- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024
01:19 AM
02-27-2024
01:19 AM
Magento CLI 2.4.3-p3 Rest API Self Access denied using Customer Token
Preconditions and environment
- Magento CLI 2.4.3-p3
Steps to reproduce
- Login customer by using http://example.test/rest/V1/integration/customer/token
- Get the token from response no 1
- Get current customer by using http://example.test/rest/V1/customers/me and with header Bearer token <token_from_no_2>
Expected result
Should response the customer data
Actual result
the response is:
{ "message": "The consumer isn't authorized to access %resources.", "parameters": { "resources": "self" },
Additional information
Im using Magento CLI 2.4.3-p3,
already follow the docs instruction but its not working
docs: https://developer.adobe.com/commerce/webapi/get-started/authentication/gs-authentication-token/
Labels:
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024
01:52 AM
02-27-2024
01:52 AM
Re: Magento CLI 2.4.3-p3 Rest API Self Access denied using Customer Token
I'm not sure if this option existed in 2.4.3-p3:
Stores > Configuration > Services > OAuth > Consumer Settings >
Allow OAuth Access Tokens to be used as standalone Bearer tokens option
to Yes
Founder at https://agency418.com