• Resolved gijoecodes

    (@gijoecodes)


    I’m able to authenticate users into my application according to the “Auto generating API keys using our Application Authentication Endpoint” documentation. The consumer key and consumer secret are generated and I get the JSON API Keys from the authentication URL. I can then make requests to WooCommerce. The problem I’m having is that the consumer key and consumer secret are auto deleted from the database unlike consumer keys and secrets generated through the WooCommerce admin.

    I’ve noticed that once logged in through the app, the URL has the endpoint “/wc-auth/v1/access_granted/” which comes back with the parameter “wc_auth_nonce”. Is that needed for the authentication in order for the key and secret to not be deleted?

    What am I missing in order to make the consumer key and secret remain in the database?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @gijoecodes

    The problem I’m having is that the consumer key and consumer secret are auto deleted from the database unlike consumer keys and secrets generated through the WooCommerce admin.

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources portal for resources on developing for WooCommerce.

    Finally, you might want to visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    And if you need help building this, I highly recommend contacting one of the services on our customizations page: https://woocommerce.com/customizations/

    Regards

    Seems we’ve not had additional inputs on this thread. Thus, we encourage you to make use of the above resources.

    I’ll go ahead and mark the thread as resolved but please feel free to create a new thread if you have further questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Consumer Key and Secret get deleted after successful authentication.’ is closed to new replies.