How to fix Nextcloud SuiteCRM integration login error - showing not found

Hi All,

My environment:

  • SuiteCRM Version used: 7.10.33
  • Environment name and version: PHP 7.4
  • Operating System and version: Ubuntu 20.04 (on both vps’s - nextcloud and SuiteCRM)

Module: https://github.com/eneiluj/integration_suitecrm

Have followed the instructions from SuiteCRM side, i.e.:

  1. Create openSSL private and public keys (and have checked that they’re created in directory expected)
  2. Went to the “OAuth2 Clients and Tokens” admin settings section and create a “new password client” - All good - have created client-id and secret.

On nextcloud side:

  1. Admin → settings → connected accounts: Input client-id and secret along with domain of installation.

When attempting to use a user’s login from nextcloud to login and get an access_token, none seems to be created in SuiteCRM.

I get the following response…

SuiteCRM OAuth error : Client error: POST https://***************.com/Api/access_tokenresulted in a404 Not Found response: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found (truncated...)

…and in the server file location: /var/www/html/SuiteCRM-7.10.33/Api/ there’s no “access_token” of any description.

Am I missing out any obvious gotcha mistakes here?

Any ideas gratefully received.

All the best, Paul

How did you do this without getting an error?

Did you get an answer to this that was helpful? I’m having the same issue.

which error are you getting?

Here’s a procedure I wrote for my blog. I spent a whole weekend trying to get it to work. It’s very particular. Here is the exact procedure to get it to work. BTW it ONLY works on SuiteCRM 7. SuiteCRM 8 has different URL for API so the plugin won’t work.

https://igosalesandmarketing.com/suitecrm-nextcloud-integration/