Yes, youāre right ā /index.php?entryPoint=setExternalOAuthToken is the correct redirect URI for SuiteCRMās OAuth setup, and no, itās not something you can edit from the UI.
Here are a few things to double-check: in Google Cloud Console:
Make sure youāve added the full redirect URI like this (with your actual domain): https://yourdomain.com/index.php?entryPoint=setExternalOAuthToken On your SuiteCRM setup:
Confirm that the site_url in your config.php file matches your actual domain, including https://
If youāre using any .htaccess rules or URL rewrites, make sure theyāre not blocking or redirecting /index.php
Try disabling any popup blockers or browser extensions ā they sometimes block OAuth popups without warning
Also, just to be safe ā check that your SuiteCRM instance is publicly accessible (no firewall or IP restrictions), since the popup needs to reach that redirect endpoint to work.
One more thing: try opening the full redirect URL directly in your browser ā does it load anything or just stay blank? That might give us another clue.
Thank you for helping me. I updated my site_url and reloaded what needs to be reloaded, also no rules blocking on .htaccess and firewall. I also disabled my popup blocker and extensions, also tried it on a different browser and on incognito as well.
When I opened the redirect url index.php?entryPoint=setExternalOAuthToken this gave me a āCanāt reach pageā, I have also added another authorized uri on our google cloud and it was the index.php?entryPoint=oauth2callback for this it just opened our suitecrm overview page.
@kth90
If youāre getting a āCanāt reach pageā when going to index.php?entryPoint=setExternalOAuthToken, it likely means SuiteCRM isnāt recognizing that entry point.
Hereās what you can try next:
Check if the handler file exists: Go to your SuiteCRM folder and make sure this file is there: include/entryPoint_registry/ExternalOAuthToken.php
If itās missing, SuiteCRM wonāt know how to process that URL.
Run a Quick Repair and Rebuild:
From the admin panel, go to Admin ā Repair ā Quick Repair and Rebuild ā this helps SuiteCRM register all necessary routes and entry points.
Double-check the redirect URI in Google Cloud Console:
It should match your full domain exactly like this: https://yourdomain.com/index.php?entryPoint=setExternalOAuthToken
Ohh the handler file doesnāt exist when I searched for it on the root folder.
Also I noticed that after changing the site_url in my config.php the Redirect URI changed from the default āhttp://suite-crmā¦ā to our domain so I updated it on google cloud console as well and when I check it directly now ā https://yourdomain.com/index.php?entryPoint=setExternalOAuthToken
it says
"The specified OAuth2 providers is not supported or not properly configured"
I checked my Gmail OAuth provider again and on the field for Client ID im just noticing now that I also had pasted the word āClient ID ā together lol omg, I updated it now but now when I check the link directly again it now says āInvalid stateā
Thank you for helping me troubleshoot this but I have opted in using the app password instead, when I get another chance, Iāll reinstall this again on a development server and try again but so far for now doing it via app password has worked.
Quick question tho, I was able to authenticate and send test emails and even compose and send an email from the Email module but I donāt see my emails being loaded when I click on āView Emailā, how long does it usually load? or could it still be synching?
Hey! @pstevens
Yes, just to clarify ā the OAuth setup does support Gmail/Gsuite accounts, provided everything is configured correctly (client ID, redirect URI, scopes, etc.).