cancel
Showing results for 
Search instead for 
Did you mean: 

Magento CLI 2.4.3-p3 Rest API Self Access denied using Customer Token

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

  1. Login customer by using http://example.test/rest/V1/integration/customer/token
  2. Get the token from response no 1
  3. 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/

1 REPLY 1

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