docs icon indicating copy to clipboard operation
docs copied to clipboard

API Login not possible - undocumented Login-method

Open UdoLauer opened this issue 3 years ago • 2 comments

Hello,

please see https://www.prestashop.com/forums/topic/1027824-api-login-not-possible/?tab=comments#comment-3250773 for detailed information.

I'm not sure if this is only a document-issue. But i got no help from the forum, Prestashop-Security, and Slack.

Best Regards

UdoLauer avatar Jul 21 '20 11:07 UdoLauer

@UdoLauer API endpoint : /api is accessible only if you have generated the appropriate .htaccess and enabled mod_rewrite in your Apache vhost

matks avatar Jul 21 '20 12:07 matks

HTTP Basic auth method doesn't work on client's server and using ws_key argument helps http://prestashop.example.net/api/?ws_key=AUTH_KEY. So it should be documented. (credits: https://www.prestashop.com/forums/topic/1027824-api-login-not-possible/#comment-3250838 and https://www.prestashop.com/forums/topic/430312-presta-api-keep-asking-for-username-password-authentication-required/#comment-2512161). Documentation for Apache mod_rewrite solution could be useful too as recommended here: https://stackoverflow.com/questions/59937378/prestashop-webservice-api-login#61968411.

cernekj avatar Sep 09 '22 01:09 cernekj