Jump to content

API webservice authorization


Recommended Posts

Hi, I am debugging a developer for a module that's being used on Prestashop.

I have come across the following issue: for a reason I have not found my end-client token requires effective login (email and password) if I try to access this endpoint /api/SOMETHING. Meanwhile the token I have generated in my testing shop does not. For this reason, my token works when doing this request from PostMan https://TOKEN@SHOP-URL/api  but my en-client's token does not.

The solution I have found is using the ws_key=TOKEN. This works for both tokens when I send this request http://SHOP-URL/api/?ws_key=TOKEN.

My questions are: Why does this happen? And, is the ws_key a deprecated property?

 

Edited by vanessa_adabra (see edit history)
Link to comment
Share on other sites

  • vanessa_adabra changed the title to API webservice authorization

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...