I built a WooCommerce integration for Botcadence so businesses can connect their stores and let our AI answer order questions and send updates. Comparing it with Shopify taught me to separate credential issuance, request authentication, and verification of who is calling.
Shopify OAuth 2.0 returns a short-lived code after approval, exchanges it for an access token, and refreshes the token after expiry.
WooCommerce /wc-auth approval hands over an API key because each store is its own WordPress site and there is no central app registration.
WooCommerce API calls use HTTP Basic auth over HTTPS and the API key never expires.
WooCommerce /wc-auth looks like OAuth to the merchant but is an API key handover underneath.
I send a random one-time token with the approval link, store only its hash, and accept the key only if the token returns within 30 minutes.
The API key authenticates integration requests to the store, and each store has a separate secret for inbound webhooks.
WooCommerce webhook events use HMAC-SHA256 signatures that the integration verifies to prevent fake order-completed events triggering customer messages.
WooCommerce never retries failed webhook deliveries and disables a webhook after 5 failures in a row.
I persist each webhook delivery before processing; every 15 minutes, I re-enable switched-off webhooks and replay missed orders.
A 401 is the first sign permanent-key access is gone; I mark the integration disconnected and alert the business.
- My authentication-method comparison: API keys are simple, broad, and permanent; HTTP Basic auth is safe only over HTTPS; OAuth 2.0 is the most secure and most work; OAuth 1.0a is mostly legacy; /wc-auth hands over a permanent key; webhook HMAC signatures prove message origin and are not login.
Obtaining a credential, using it on each request, and verifying who is calling are three separate problems; separating them made WooCommerce's flow sensible for a platform with no center.
I asked what auth flow surprised people most when they first integrated with it.