Hi there.
Sorry but Iām in the same situation as you. I followed this https://docs.suitecrm.com/developer/api/developer-setup-guide/json-api/
created the Client Credentials via the admin panel
Generated the keys on the server, permissions etc.
updated the const OAUTH2_ENCRYPTION_KEY
but i still get the
{āerrorā:āinvalid_clientā,āmessageā:āClient authentication failedā}
client_id is the guid
client_secret is the OAUTH2_ENCRYPTION_KEY
where am i going wrong?
kind regards
M
OK figured it out
so you have to go back to the oauth client credentials in suitecrm admin
click edit
and change the secret to your new OAUTH2_ENCRYPTION_KEY
Hello!
I have tried everything suggested in this thread, but I still get a 404 when trying to access the endoint Api/index.php/access_token.
I have tried both from my local and production environments (PHP7.3, HTTPS, v7.11.8).
Curious thing is that API access throught Integromat works fine
Any idea on how to proceed?
Thank you,
Guido
PS: I promise that I will update the docs if I find a solution
I have implemented the fix, and later updated to 7.11.10, but the API still gives me 404.
Further searching in the forum brought me to the conclusion that the issue could be related to the fact that I use nginx and not Apache, meaning that the htaccess file is not interpreted correctly.
Now my challenge is to find a working nginx configuration for SuiteCRM; I will try first with this suggestion: suiteCRM nginx config
@murray_greig what is your Github user name? Iām guessing you made the change and Github created the commit in your forked repo, instead of on the main one. So you would still need to create a PR. I can help you but if you tell me where I can go looking for it, that would be helpful. Thanks.
If SCRM installed in root (/) just remove subdir and use root path in the configs above.
There are also considerations to be mention regarding Apache web-server. SCRMās docs donāt mention requirements to check whether āmod_rewriteā module is installed and activated. So one should check it and enable if needed.
Also, AllowOverride directive in Directory directive for the crmās path should changed from None to All.
This path is incorrect since PHP scripts do not set up router to handle this path. See comment on Github. The correct path is Api/docs/swagger/swagger.json.
Can I ask you to please update our API Documentation? Everybody complains that it is inaccurate or incomplete (it is), but then when they solve their problems they donāt update it⦠itās a wiki. And we are a Community maintained product
I am new to suiteCRM here. I am trying to get access to API V8 using postman where I can disable ssl.
Now I can use my localhost url http://localhost/newCRM in the curl url.
Rest everything same. But still I am unable to generate the tokenā¦Here is my code
I had this working last December and finally got some free time to come back to developing API integration with one of our Drupal based sites. Iām able to pull an access token but the reply is longer than I recall and the token does not seem to be recognized by the server in subsequent requests (mainly trying the refresh call first before diving into CRUD operations).
This is reply Iām getting to pulling a new token:
A little more progress if I base64_decode that response I get another json object with a token that i can see in the database ā but there appears to be extra garbage at the end: