Hello SuiteCRM Community,
I am experiencing an issue while attempting to integrate Mautic with SuiteCRM via SugarCRM. The connection seems to fail during the OAuth2 authentication process, specifically when trying to obtain the access token. I’ve attempted various configurations but haven’t been able to resolve the problem. I would appreciate any guidance or advice you can provide.
Here are the details about my setup and the issue:
System Information:
- SuiteCRM Version: 8.7.1
- Mautic Version: 5
- PHP Version: 8.1.29
- Database in Mautic:
|Version|5.7.44|
|Doctrine driver|pdo_mysql|
|Doctrine database platform (automatically detected)|Doctrine\DBAL\Platforms\MySQL57Platform| - Access: I have admin rights, but not SSH access to the server.
Here is what I have already tried:
- In SuiteCRM, I configured the OAuth2 keys with the following in the OAuth Keys:
- Created a proper Client ID and Client Secret with no special characters:
- **Put the Client ID and Client Secret correctly into SugarCRM (I know that all the credentials I put in SugarCRM are correct, including using version 6.x/community).
- **I also properly set up an External OAuth Provider and connection (But I’m not sure if my current authorize and access token URL’s are correct for my given setup).
- My Current URL’s:
- Authorize URL: https://my-site-url-base/index.php?entryPoint=oauth2&action=authorize
- Access Token URL: https://my-site-url-base/index.php?entryPoint=oauth2&action=token
- When I go to my Authorize URL in my browser, I get the following message on screen: There is no action by that name: authorize
- In Mautic, I followed the standard steps for integration by:
- Entering SuiteCRM’s OAuth credentials (Client ID, Client Secret).
- When I click the “Authorize” button in Mautic, a window appears, but the process fails with the following error:
"Authorization failed with the error message: There was an unknown error encountered when trying to obtain the access token."
Logs and Errors:
SuiteCRM Logs:
Sun Jan 19 02:25:22 2025 [57445][1][FATAL] The specified OAuth2 provider ‘’ is not supported or not properly configured
Sun Jan 19 03:01:20 2025 [57443][1][FATAL] Exception handling in /bitnami/suitecrm/public/legacy/include/MVC/Controller/SugarController.php:397
Sun Jan 19 03:01:20 2025 [57443][1][FATAL] Exception in Controller: Required options not defined: urlResourceOwnerDetails
Mautic Logs:
[2025-01-22T01:11:50.475724+00:00] mautic.WARNING: PHP Warning - file_put_contents(/var/www/html/var/cache/prod/lastUpdateCheck.txt): Failed to open stream: Permission denied - in file /var/www/html/docroot/app/bundles/CoreBundle/Helper/UpdateHelper.php - at line 154 {“hostname”:“102d7f0a9693”,“pid”:15432}
[2025-01-22T01:14:39.904830+00:00] mautic.ERROR: INTEGRATION ERROR: Sugarcrm - There was an unknown error encountered when trying to obtain the access token. {“hostname”:“102d7f0a9693”,“pid”:15435}
Troubleshooting Attempts:
Here’s what I’ve tried so far:
- Tried various URL formats from other discussions on SuiteCRM community website (Authorize URL, Access Token URL).
- Verified OAuth2 keys in SuiteCRM for accuracy.
- Searched SuiteCRM documentation and forums for similar issues.
- Checked SuiteCRM and Mautic logs.
Unfortunately, none of these efforts have resolved the issue for me.
Additional Notes:
I suspect the issue may be related to:
- The token URL setup: (e.g., incorrect endpoint, missing configuration).
- Redirect URI handling in SuiteCRM or Mautic.
- Authentication mismatch: between the systems.
I would appreciate it if someone could confirm if my URLs for Authorization and Token are correctly configured and if there is anything else I’m missing to get this integration to work for me.
Thank you for your help!