Topic-icon Google login is throwing 403 error

Active Subscriptions:

None
5 years 6 months ago - 5 years 6 months ago #64713 by tekdinet
Hello,

My Google login with JFBconnect has suddenly stopped working properly. I believe it is related to some change I need to make in Google app scopes, however I need your help to understand the correct settings to make the google login work again.

I am getting the following error when I try to login with google account.
Forbidden
You don't have permission to access /index.php on this server.
Last edit: 5 years 6 months ago by tekdinet.
The topic has been locked.
Support Specialist
5 years 6 months ago #64716 by alzander
I just tried to authenticate on your site and see the same error that you reported. The 'Forbidden' message usually comes from some sort of firewall or Apache restriction on your server for the URL that is being requested.

The URL looks like:
/index.php?option=com_jfbconnect&task=authenticate.callback&provider=google&state=ae1cba9e5d883b28ae032a6cad8ceb43&code=4/fwAaRopi5JKyckTWVPyb6KYq8Xo5SmuIvCj0P4bJ7zqZ7FJempqqhlfjNBOncKTgr7GoikGayGsmsjtqro8zX6g&scope=https://www.googleapis.com/auth/plus.me%20https://www.googleapis.com/auth/userinfo.profile%20https://www.googleapis.com/auth/userinfo.email
If you have mod_security installed for Apache, or another firewall extension for Joomla, you'll need to check the logs to determine if there is an exception being thrown that's blocking that request for some reason.

If that's not the case, I'd recommend removing switching to the default Joomla .htaccess file (temporarily) on your site to see if that helps.

It's possible that the %20 (a space) in scopes value is throwing the problem, but there are also other extensions that will do certain things if they see a 'state', 'scope', or 'code' parameter, even if the request isn't intended for that extension. If none of the above work, you may want to start disabling system plugins and testing each time to see if one specific system plugin is causing a conflict.

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