Legacy Knowledge Base
Published Jul. 2, 2025

Authentication Error When Logging In With Google Account

Written By

Ryan Najima

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

This article documents an authentication error when attempting to log in to the portal instance using a google account. Listed below are the steps to resolve the issue or avoid it altogether.

Resolution

Error: redirect_uri_mismatch

Summary: After the user has been authenticated with Google, they are redirected to an authorized redirect URI. If there are no authorized redirect URIs listed, or if they do not match the request, the redirect_uri_mismatch error will display.  

Common Causes

The redirect URI in the request does not match the ones authorized for the Open Authentication (OAuth) client.

Recommended Solution

  1. Navigate to the Credentials page in the Google API Console Google_Login_Credential_Overview_page_01.PNG
  2. Select the appropriate OAuth 2.0 client ID. authorized_redirect_URIs2_02.png
  3. Verify that the Authorized redirect URIs are correct. 
  4. Save. Please note, it may take a few minutes to sync with the portal.
  5. Go back to the portal and sign in through Google to verify that everything is functioning correctly.Google_Login_Portal_2_03.png

Prevention Tips: 

When first completing the initial configuration in the Google API console, verify that all the steps listed in the Recommended Solution section are done correctly.

Additional Information

Client ID and Client Secret credentials can be created at Google APIs.

Did this article resolve your issue ?

Legacy Knowledge Base