rtCamp / login-with-google

Minimal plugin which allows WordPress user to login with google.

Home Page:https://wordpress.org/plugins/login-with-google/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not retrieve the access token, please try again.

icepcp opened this issue · comments

I am getting the error: Could not retrieve the access token, please try again.
image
I am not sure if this is due to WordPress multisite configurations. If you require additional information/logs please let me know.

Update: created a new wp site in the multisite and it works however still doesn't work on the site with access token issue

Solved by copying and pasting my client secret

I am facing the same issue on my website (equitymidas.com).

Were you able to get the authentication working on your original site (the one which faced the issue)? If yes, how?

Thank you.

I am facing the same issue on my website (equitymidas.com).

Were you able to get the authentication working on your original site (the one which faced the issue)? If yes, how?

Thank you.

Hi @Ferrari1976

Apologies for the late reply. I managed to get it to work after copying and pasting my client secret again. I hope this helps, do let me know if you still face the same issue. :)

Thank you.

Thank you for your response icepcp.
Unfortunately for me, the plugin just stopped working and the error did not go-away even when I tried to change the client id and secret login (created a new one). I had to uninstall the plugin and use an alternate one to get the functionality working again.

Thank you again.

One of my beta site users is having this issue (she's an admin).

Two of them are not (they can log in, not admins).

And both of my admin accounts are having a different symptom: blank window with the url not fully redirected:
https://actonscouts.org/wp-login.php?state=%3D%3D&code=&scope=email+profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile&authuser=0&hd=actonscouts.org&prompt=none

Fortunately I can log in via hosting provider.

I had switched to this plugin because another one mysteriously stopped working when I wasn't looking. Can't keep switching plugins as a long term solution...

Anyone have any ideas how to troubleshoot?

ETA: it seems that my admins can only log in with GAuth if Administrator is the only role they have (I am using the "Members" plugin from MemberPress to create site-specific roles for RBAC on pages and menu items). Other non-admin users can have multiple roles defined and log in with GAuth and "Login With Google" plugin.

Hi @cschiefelbein,
May i double check that your admins can't log in with many roles, and only with the admin role? I feel like this might be an issue of MemberPress. I don't use WordPress anymore but when i was using it, I used Ultimate Member. If you are on a MultiSite cofig, try creating a new blank website and replicating the extensions

Hi,
Maybe the issue is coming from GoDaddy's WordPress service? I am not sure what plan you are but one of them has a WordPress code optimizer, that could be the issue, but once again, I am not sure. At this point, I suggest just allowing your admins to log in with a username and password. You should also create a new issue in GitHub, however not sure if the developers will respond. When I was having this issue, I was self hosting WordPress and had control of everything.

Hi @cschiefelbein
I am not the developer of this plugin and am unable to assist. Do open a new issue on the same repository. I wish you all the best