Jump to content

Prestashop webservice keeps asking for authentication


Recommended Posts

Hi,

 

We have created an EC2 instance with prestashop bitnami and we are having trouble activating the webservice.

 

when we put in browser key@site_url/api, authentication screen appears asking for user and password. We put the key as a user and password leave empty but keeps asking for authentication.

 

We've been doing a lot of testing but cant found the problem. ¿Do we have to configure anything on the server?

 

Any help would be appreciated

 
 

I forgot, we have 1.6.1.4 version

Link to comment
Share on other sites

it seems that we have detected the problem.

 

$_SERVER['PHP_AUTH_USER'] don't works with php-fpm.

 

To solve, edit .htaccess and add just after

 

RewriteEngine on

 

the code:

 

RewriteCond %{HTTP:Authorization} ^(.*)

RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
 
 
Link to comment
Share on other sites

  • 5 years later...
On 5/30/2016 at 11:35 AM, mavitec said:

it seems that we have detected the problem.

 

$_SERVER['PHP_AUTH_USER'] don't works with php-fpm.

 

To solve, edit .htaccess and add just after

 

RewriteEngine on

 

the code:

 

RewriteCond %{HTTP:Authorization} ^(.*)

RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
 
 

Mavitec,

I'm here using that shot on spot reply.

thank you since 2021!

Link to comment
Share on other sites

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...