Hello,
I am trying to create a Gmail Data Store in Gemini Enterprise (formerly Vertex AI Search) but I am stuck in a loop with the 400: redirect_uri_mismatch error during the authentication step after clicking “Create”.
I have followed the documentation and community advice, but the error persists.
Here are the steps I have taken:
-
Created a new OAuth 2.0 Client ID for a Web Application.
-
Verified my OAuth Consent Screen is published and configured correctly.
-
Received the
redirect_uri_mismatcherror. -
Identified the required
redirect_urifrom the error message’s details pane. -
Added the exact URI to my Client ID’s “Authorized redirect URIs” list.
-
Set the “Authorized JavaScript origins” correctly.
-
Waited over an hour, cleared my browser cache, and even deleted and manually re-typed the URI to ensure there were no hidden characters.
My Current Configuration:
-
URI from Error Message:
https://vertexaisearch.cloud.google.com/oauth-redirect?flowName=GeneralOAuthFlow -
URI added to “Authorized redirect URIs”:
https://vertexaisearch.cloud.google.com/oauth-redirect?flowName=GeneralOAuthFlow -
URI added to “Authorized JavaScript origins”:
https://console.cloud.google.com
Despite the redirect_uri in my request exactly matching the authorized URI in my Client ID settings, the error will not go away. I do not have access to a direct enterprise support plan.
Is this a known bug, or is there another project-level setting I might be missing that could cause this behavior?
Thank you for any help you can provide.