m2-MSP_APIEnhancer icon indicating copy to clipboard operation
m2-MSP_APIEnhancer copied to clipboard

Extension caches header authorization token

Open magedevjosh opened this issue 6 years ago • 2 comments

I'm working on a site that uses this extension and noticed a pretty significant issue. When using token authorization, the extension caches the authorization token. Here's what I've done to replicate the issue.

Install extension Get an admin auth token by using the /V1/integration/admin/token endpoint Copy auth token and set it in the header using Authorization: Bearer {token} along with Content-Type: application/json Hit a default Magento 2 API endpoint: /V1/categories/2 Disable the Authorization header and keep the Content-Type header In my tests, the request comes back successful.

magedevjosh avatar Feb 07 '19 22:02 magedevjosh

Nope, still an issue. Turns out when I installed the module, the cache was disabled by default. When I enabled it on the fresh copy of 2.3.0, the same problem occurred.

magedevjosh avatar Feb 08 '19 02:02 magedevjosh

we had to go through the same issue on Magento 2.3.2

hawksakr avatar Dec 30 '20 09:12 hawksakr