HappyPorch / uSplit

A/B Testing plugin for Umbraco
The Unlicense
11 stars 7 forks source link

Setup uSplit without authentication? #9

Closed fabianScout closed 7 years ago

fabianScout commented 7 years ago

Hello, if we try to setup uSplit in our test environment we struggle with the Google API Credentials. Our local uri is umbraco.our-domain.de.local and staging server is only available with umbraco.our-domain.stage. But these uri's are not allowed for the Authorised redirect URIs and we get following exception from the API manager when we try to save: Invalid Redirect: http://umbraco.our-domain.de.local must end with a public top-level domain (such as .com or .org).

So, we can't save the URI in API Manager Credentials and only configure the Credentials for our live URI. If we open the uSplit - A/B testing page in umbraco on our local machine we get two organge warnings:

  1. Warning! This site is not authenticated with the Google API.
  2. Warning! Object reference not set to an instance of an object..

Is there a way to get it running on our local machines and stage environment with these special URIs we have?

Thanks. Regards, Fabian

ondrejpialek commented 7 years ago

Hello @fabianScout,

unfortunately this is a limitation of Google API, one however that is easy to work around.

If you want to test uSplit on your local or staging environment, you need to do the following:

This will be sufficient as when you authenticate with google, it will redirect you to the custom domain, but your computer will navigate to the IP address set in your hosts file. Note however that authentication will only work on those PCs where the hosts entry is present.

Hope this helps, Ondrej.

fabianScout commented 7 years ago

Hi Ondrej,

worked for me. Now we can test uSplit local.

Thanks. Fabian