fbpx

Google Login Can't Work

Google Login Can't Work

I've setup a Google login using JFBConnect, filled up the Client ID and Client Secret. Even got the People API verified and approved from Google API team.

But when I click the frontend "Login with Google". It shows the following message (debug turn on):

We were unable to retrieve your Google account information.

Error code 400 received requesting access token: { "error": "invalid_grant", "error_description": "Malformed auth code." }.

Is there anything that we can do about it?
If need website access or screenshot, just let me know.
Thanks and appreciate it very much current/smile

nicteo
Nickey
useravatar
Offline
3 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Google Login Can't Work

Can you let me know the following values in your Google App

From the APIs & Services > Credentials tab:
- URIs
- Authorized redirect URLs

-Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3807 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Google Login Can't Work

Hi Melissa,

Thanks for your reply.

I'm attaching a screenshot of the current Authorized Redirect URI for your reference.
https://www.sourcecoast.com/images/agorapro/attachments/14573/mini_sourcecoast-ihub-googlelogin-200327.png

Hope to hear from you soon current/smile

Edited by: nicteo - Mar-27-20 03:35:59
nicteo
Nickey
useravatar
Offline
3 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Google Login Can't Work

Looking at the requests made to Google, it seems like you have an SEF extension that's altering the URLs they are using. At first, Google is requesting the proper URL that looks like below (the long strings will be different for each authentication):

index.php?option=com_jfbconnect&task=authenticate.callback&provider=google&state=b0c43602cfad9ddacbcdcbfb2d1262be&code=4/yAEyP_lOAd3f96hYFjo1t7kDmPAle2O0pEObvHXOv2H2N3b0yD4Br4HByTRF8aw0GtGJQ4kz1wFGbE_QpTG6DGo

But then, something on your site is performing a 301 redirect to:

/component/com_jfbconnect/authuser,3/code,4/yAEyP_lOAd3f96hYFjo1t7kDmPAle2O0pEObvHXOv2H2N3b0yD4Br4HByTRF8aw0GtGJQ4kz1wFGbE_QpTG6DGo/hd

That doesn't look correct.

Can you disable SEF URLs (temporarily) to see if that fixes the issue? If so, then please investigate how to have whatever SEF extension you're using 'skip' generating pretty URLs for JFBConnect. They shouldn't be necessary.

I hope that helps, but if you continue to have issues, just let us know.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24541 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Google Login Can't Work

Hi Alex,

Thanks for your quick reply.

I've done as you suggested. I'm using SH404SEF, so I went over to the configuration and clicked "Leave as non-sef" for JFBConnect. The Google login works perfectly now.

Appreciate your solution very much. Thanks and have a good day current/smile

nicteo
Nickey
useravatar
Offline
3 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11951
Total Polls:
0
Total Posts:
50102
Posts this week:
11
User Info
 
Total Users:
48683
Newest User:
husnatechnologies
Members Online:
0
Guests Online:
1431

Online: 
There are no members online
Social Stream
Hide, Seek & Defuse

Handheld Electronic Game

Alex from SourceCoast is working on a new electronic game for kids called Countdown. It's a timed game of Hide & Seek with mini-games (Whack-a-Mole, Simon, etc) to complete when you find it.

Hide and Seek Toys

Before You Leave

Let us send you a 10% off coupon

For Your Next Purchase

Please enable the javascript to submit this form

No , I don't want a discount