• I am building a custom app that will allow customers to interact with a custom product carousel app that I’ve embedded inside of a div of current shop. My hope is to have an “add to cart” button on my carousel for each selected product. When you click the add to cart button that would trigger a call to the current cart to add my product. I need to know if this is possible with my current setup.

    My current embedded app will match all the product skus in my shop and I know I should be able to query all the products from my embed, my main question and concern is how do I go about authorizing requests to the woocommerce api from the embedded app? Is there a public token that can be generated, allowing me to gain access to the api’s endpoints? I need to know how I’m going to get around having my keys exposed without having to make my calls from a server.

    Not able to share the link currently due to my keys being public. Any help on this is would be much appreciated. Thanks!

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I believe the Woo API would use the same authentication scheme that the generic WP API would use. You may wish to confirm this through the WC dedicated support forum. In short, the REST API requires you to use an authentication plugin if cookie authentication is not an option, which is typically the case for apps.

Viewing 1 replies (of 1 total)
  • The topic ‘Authentication with my embedded app’ is closed to new replies.