michelepizzi

Prestashop 1.7 Webservice Authetication Error

Apr 6th, 2020
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Found the problem and solved the case in this way.
  2.  
  3. The problem is not releted to Prestashop or prestapyt but relative to the server configuration (Apache + PHP).
  4.  
  5. Considering that in my case I'm working in a managed cloud service, I don't have in depth information about that.
  6.  
  7. But the result of this configuration is that the Authorization header does not appear in the $_SERVER variable. The same behavior reported here:
  8.  
  9. Why are $_SERVER[“PHP_AUTH_USER”] and $_SERVER[“PHP_AUTH_PW”] not set?
  10.  
  11. I solved adding this statement to the .htaccess file in my Prestashop installation:
  12.  
  13. SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
  14.  
  15. As suggested here.
  16.  
  17. I hope to help others Prestashop users that incur in the same problem.
Advertisement
Add Comment
Please, Sign In to add comment