Wordpress "Login with Google": Error 400: redirect_uri_mismatch


If you have a Wordpress web site, like into your business organisation, instead of give each user an username/password for do the login, you can set an Single Sign On login using, for example, Google Workspace.

For Wordpress actually there are these two plugin:

They work great! And they are free.

Into one website I had a problem with the login.
After pressing the "Login with Google" button and selected the account, Google return the error:
Error 400: redirect_uri_mismatch

After some trouble shooting I found the problem.
This website was installed into a sub-folder and the index.php in the root had the classic string for mask the subfolder in the URL. Read the official documentation.

For solve this problem you must install the Wordpress files into the root directory!

The problem is how Wordpress sub-folder system work.

In my case Wordpress was into "www.domain.com/wordpress".
I moved all content of the wordpress folder into the root directory.
After all work properly!

The problem is how Wordpress manages the sub-folder login page.

Comments

Popular posts from this blog

Kali linux/Debian: Failed to copy file from CD-ROM. Retry?

how change email on improvmx.com