Title: Authentication Error 0:
Last modified: September 18, 2018

---

# Authentication Error 0:

 *  Resolved [ritikarawlani](https://wordpress.org/support/users/ritikarawlani/)
 * (@ritikarawlani)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/authentication-error-0/)
 * Hey,
 * I am trying to use this plug-in in a localhost environment with a developer org
   of Salesforce. I am getting the “error 0:” on hitting Connect to Salesforce. 
   I went through the forum posts and here are my observations:
 * On hitting connect to Salesforce: It does redirect to the correct Salesforce 
   Org and comes back to WP settings with error 0
 * No errors on php_error.log
 * In my database I do have the relevant tables created but I do not have the object_sync_for_salesforce_refresh_token
   under wp_options. How can I correct this?
 * No errors in JS in console logs
 * I notice that the callback URL says it Must be Https, but since I am running 
   the WP site on localhost it is setup on HTTP and not HTTPS. Is that a barrier?
   If so, how can I change my WordPress site to work on Https?
 * Many thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jonathan Stegall](https://wordpress.org/support/users/jonathanstegall/)
 * (@jonathanstegall)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/authentication-error-0/#post-10701863)
 * This plugin will definitely not work without HTTPS. There are lots of ways of
   doing HTTPS in localhost. I don’t provide support for any of those, but my personal
   favorite is [Laravel Valet](https://laravel.com/docs/5.7/valet). You won’t be
   able to create a refresh token value in the wp_options, because that comes directly
   from Salesforce after a successful authentication.
 * I have seen users get error 0 as a return value from Salesforce at other times,
   but usually it is one of the following reasons:
 * 1. One or more of the settings doesn’t match what Salesforce expects
    2. The 
   SSL is incorrect (hopefully this is the only issue you’re having) 3. Sometimes
   it can happen if the Salesforce app has not been live long enough; it can take
   a few minutes before it is accessible.
 * Unfortunately Salesforce doesn’t return any other data when this error happens,
   so there’s not much else I can offer. But hopefully you’ll find it’s only the
   SSL issue.

Viewing 1 replies (of 1 total)

The topic ‘Authentication Error 0:’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/object-sync-for-salesforce.svg)
 * [Object Sync for Salesforce](https://wordpress.org/plugins/object-sync-for-salesforce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/object-sync-for-salesforce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/object-sync-for-salesforce/)
 * [Active Topics](https://wordpress.org/support/plugin/object-sync-for-salesforce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/object-sync-for-salesforce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/object-sync-for-salesforce/reviews/)

## Tags

 * [authentication](https://wordpress.org/support/topic-tag/authentication/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jonathan Stegall](https://wordpress.org/support/users/jonathanstegall/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/authentication-error-0/#post-10701863)
 * Status: resolved