vue-storefront-api icon indicating copy to clipboard operation
vue-storefront-api copied to clipboard

HttpAuth Settings not used

Open Cyclonecode opened this issue 5 years ago • 5 comments

I have a site that is password protected and I have added correct credentials in vue-storefront-api configuration under httpUserName and httpUserPassword, but I'm still not able to access the site and looking on the logs I can see that the requests returns 401 UnAuthorized. If I actually add the credentials to magento2.imgUrl and the others values, in the form 'http://username:[email protected]then it works as expected. Searching through the code I don't see any references tohttpUserNameorhttpUserPassword` so I guess these settings are not used at all?

Would be nice if the httpAuth configuration actually are used. Right now this is very confusing.

Cyclonecode avatar Apr 17 '19 08:04 Cyclonecode

@Cyclonecode sure, could You prepare a PR with this feature please?

pkarw avatar Apr 17 '19 09:04 pkarw

@pkarw - Yes I can fix this. I assume that this will be used then for all magento2 requests. The magentoUserName and magentoUserPassword is not used either, so perhaps adding support for this configuration as well.

Cyclonecode avatar Apr 17 '19 10:04 Cyclonecode

@Cyclonecode is there any update?

gabwik avatar Aug 12 '19 06:08 gabwik

have the same issue as well, can't connect to Magento 2 rest with httpAuth enabled and credentials are not used as well

jambardnishvili avatar Mar 11 '20 11:03 jambardnishvili

Hi @pkarw Is there is update in this issue? Thank you

PrakashThapa avatar Aug 07 '20 06:08 PrakashThapa