Support

Pre-sales

#41302 Akeeba Social Login-Google

Posted in ‘Pre-sales and Account Questions’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by nicholas on Thursday, 07 November 2024 01:45 CST

ugr71

Good evening.
I just finished a Google OAUTH2 integration, but there's a problem with Invalid OAuth2 redirect_uri.

My Google Console Authorized redirect URI (as per Akeeba Instructions):
https://SITENAME.com/index.php?option=com_ajax&group=sociallogin&plugin=google&format=raw.
On Google, the app is approved, id and secret added in Akeeba Google plugin.

When clicking on Google Login Button, Error apair. Under Request details: redirect_uri=https://www.SITENAME.com/index.php?option=com_ajax&group=sociallogin&plugin=google&format=raw flowName=GeneralOAuthFlow

It seems that a plugin made a different redirect uri. Maybe I made an error, but I checked several times in Instructions, checked Plugin and Google Console but don't find it.

Can you help please?

Best.

nicholas
Akeeba Staff
Manager

This URL IS NOT the plugin doing anything. It is Google adding parameters to the callback URL as it is supposed to do.

Since you have not said anything about what kind of error you are getting, I can only tell you that maybe something is broken. Be more specific about the error message you get and maybe we can help you.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

ugr71

Two printscreens about the error. And thank you for your help!

https://postimg.cc/PL0nXTJH
https://postimg.cc/xkwBr5pT

 

nicholas
Akeeba Staff
Manager

Check the redirect URI on Google. Make sure the https vs http and www vs non-www is correct.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

ugr71

Hi Nicholas. Thank you for your help.

Two Google Console Authorized redirect URIs:

https://SITENAME.com/index.php?option=com_ajax&group=sociallogin&plugin=google&format=raw

https://www.SITENAME.com/index.php?option=com_ajax&group=sociallogin&plugin=google&format=raw

Http Redirects are not allowed:
Invalid Redirect: This app has a publishing status of "In production". URI must use https:// as the scheme.

nicholas
Akeeba Staff
Manager

OK. Now make sure that your site is always accessible over HTTPS by going to Global Configuration and setting Force HTTPS to Entire Site.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

ugr71

Thank you! Working!

nicholas
Akeeba Staff
Manager

You're welcome!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!