Error connecting to external salesforce org

@Matt and @Jack:

To resolve the Redirect URI mismatch error when you’re connecting to external Data Sources using Skuid from the “c” namespace, which will happen when you’re displaying Skuid using the Component method of overriding, you need to specify a “Custom Callback URL” in the Auth Provider settings. This capability is only available as of the Brooklyn Q2 Point Release.

  1. CLONE the “oauthcallback” visualforce page that’s included in the Skuid package into your local list of VF pages. Basically, go into Developer Console, click “Open” > “Pages”, and search for “oauthcallback”. Open this. Copy everything in the file, and paste it into a brand-new Visualforce Page. Then, for the two Static Resource loads, replace “$Resource.” with “$Resource.skuid__” - that should save successfully.

  1. In your Skuid Auth Provider’s “OAuth Configuration”, set Custom Callback URL to “/apex/oauthcallback”.

  1. In your Salesforce Connected App’s list of Callback URLs, make sure that you add a Callback URL that contains your “–c” domain, e.g.

    https://womensfirstchoice--c.na3.visual.force.com/apex/oauthcallback

That should do it.