Topic-icon redirect_uri_mismatch in Localhost - google app

Active Subscriptions:

None
Dear Team,

I followed all the step to configure Google app properly in your documentation, but I'm testing it in localhost and I have the following error:
Error: redirect_uri_mismatch

The redirect URI in the request: http://localhost/ideeperroma-pro/index.php?option=com_jfbconnect&task=authenticate.callback&provider=google did not match a registered redirect URI.

In my app I added:

Authorized JavaScript origins:
http://127.0.0.1/ideeperroma-pro (where ideeperroma-pro is the local website folder)
http://localhost:3000

Authorized redirect URIs
http://localhost/ideeperroma-pro/index.php?option=com_jfbconnect&task=authenticate.callback&provider=google
https://localhost/ideeperroma-pro/index.php?option=com_jfbconnect&task=authenticate.callback&provider=google
http://127.0.0.1/ideeperroma-pro/index.php?option=com_jfbconnect&task=authenticate.callback&provider=google
http://127.0.0.1/ideeperroma-pro/index.php?option=com_jfbconnect&amp=authenticate.callback&provider=google
http://127.0.0.1/ideeperroma-pro/?option=com_jfbconnect&task=authenticate.callback&provider=google


I've tried many combination of the above lines, but I add always back the error. Joomla cache is disabled, Browser cache is cleaned and I tried to run the autotun many times because I read in some post that several user fixed the issues in these ways.

I've tried everithing I could do by my self, I really need your help to fix ite,

Best,

Baggio
The topic has been locked.
Support Specialist
8 years 5 months ago #55717 by alzander
A couple of suggestions:
* In the Authorized Redirect URIs, change the & to & symbols
* Remove the https:// version, unless you have a fake https certificate setup on your localhost
* Remove all of the 127.0.0.1 as the last 2 have invalid formatting. The first one looks right, if you want to keep it and test with 127.0.0.1 URLs, but Google won't automatically switch from localhost to 127.0.0.1, so they likely aren't used.
* Make sure any Redirect URIs are on separate lines (not comma separated)

Beyond that, some social networks simply don't like using localhost for development. You may want to try setting up your site on a public server or using a tool like DynDNS to get a real domain pointing at your development server and test that way.

I hope that helps get you going,
Alex
The topic has been locked.
Active Subscriptions:

None
Dear Alex,
unfortunately it doesn't work. We will see how it going to behave on online server,
Best,
Baggio
The topic has been locked.
Support Specialist
8 years 4 months ago #55730 by alzander
Baggio,
Keep me posted if it doesn't work on a live site. Again, there are ways to test on your own localhost system where you can setup a test domain to point to your site. It may be easier to just work on the live site though as well.

We'll help however we can either way though.

Thanks,
Alex
The topic has been locked.