cancel
Showing results for 
Search instead for 
Did you mean: 

[version 2.2.5 ] Consumer is not authorized to access %resources

[version 2.2.5 ] Consumer is not authorized to access %resources

Looks like my Magento 2 API in Cpanel (Shared) is not working.

I can access the public API's and get token (i.e /rest/V1/integration/admin/token ).

However, when I am try to use the token for /rest/V1/customers/1 it always failed.

{
    "message": "Consumer is not authorized to access %resources",
    "parameters": {
        "resources": "Magento_Customer::customer"
    }
}

My setup works in my local and even in my free tier AWS instance. I have the same setup and I almost tried everything (reinstalling, new install, check php, check apache, check magento config).

TIA!


2 REPLIES 2

Re: [version 2.2.5 ] Consumer is not authorized to access %resources

Hi, 

 

I am having the same issue on a new Cpanel instance. It was working on the old one. Were you able to fix this?

TIA

Re: [version 2.2.5 ] Consumer is not authorized to access %resources

Hi ~ Yes.

I fixed the problem by enabling the apache mod_rewrite and following the correct file ownership & permission.

Make sure to restart the apache and clear the magento cache folder.