vue-storefront-api
vue-storefront-api copied to clipboard
HttpAuth Settings not used
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 to
httpUserNameor
httpUserPassword` 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 sure, could You prepare a PR with this feature please?
@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 is there any update?
have the same issue as well, can't connect to Magento 2 rest with httpAuth enabled and credentials are not used as well
Hi @pkarw Is there is update in this issue? Thank you