7 posts / 0 new
Last post
Kaushik Ghate
Issues with Client Credentials Flow AUth

Trying to create a service appointment app and before using CDKDrive Appointments v1; looks like I need to get Authorization tokens. Machine to machine auth is ideal for my use case, so going with Client Credentials Flow per documentation.

Here is what my Postman request looks like:

POST URL is https://identity.fortellis.io/oauth2/aus1p1ixy7YL8cMq02p7/v1/token

PARAMS are grant_type=client_credentials&scope=anonymous

HEADERS are 'accept: application/json' 'authorization: MY_APP_KEY:MY_APP_SECRET' 'cache-control: no-cache' 'content-type: application/x-www-form-urlencoded'

Getting this response from the API instead of auth tokens; What am I doing wrong? Please help.

{ "errorCode": "invalid_client", "errorSummary": "Invalid value for 'client_id' parameter.", "errorLink": "invalid_client", "errorId": "oaeP5BBq0prT-WZ5AaYW4Rl9g", "errorCauses": [] }        

Guru Sugavanam
Hi Kaushik,

Hi Kaushik, The POST Url you are using is correct. When it comes to headers, please include the following: -content type: application/x-www-form-urlencoded -Request_Id:{Unique Request Id} -accept: application/json -cache-control: no-cache The params you are sending are correct. For more information please review: https://docs.fortellis.io/docs/tutorials/solution-integration/auth/ Please try and let us know.


Kaushik Ghate
Thanks Guru for the response.

Thanks Guru for the response. I believe I am following all the documentation instructions but am still getting the error. Am attaching the screen shot from Postman where all the header parameters can be seen. And the API response which refers to the 'client_id' header is confusing when it's not even documented.

Can you please help find the solution?


Guru Sugavanam
I cannot see the screenshot,
I cannot see the screenshot, could you please mail it to support@fortellis.io ??

Kaushik Ghate
Thanks Guru, just sent the

Thanks Guru, just sent the email with screenshot attached to support@fortellis.io


Kaushik Ghate
Hi,

Hi,

Any update on this? I had sent the screenshot to the support email per your instructions last week. Please help!


Guru Sugavanam
Kaushik, Please check your
Kaushik, Please check your email have sent you some follow up questions.

Add new comment