While trying the same using Postman , we were able to successfully get the access token and also call the API only If the Oauth config in postman has Client Authentication : Send client credentials in Body , if we select Client Authentication : Send as basic auth header , it again throws error.
We need to know which of the Client Authentication method does Our Product (Freshdesk) uses in Oauth or like, How is secret keys are being passed to the auth server? is it sent as basic auth header or in body?
If you are building the app on the Freshworks platform with OAuth it relies on RFC6749
Hope this helps:
It appears as if your app is able to get the access token but is unable to refresh it. Can you reproduce this issue in your local on fdk and share the fdk.log file?
2022-11-08 17:18:43.927 +0530 [debug] (proxy.js) Proxy came back with error as null, body as "{\"errors\":[{\"type\":\"oauth\",\"message\":\"Invalid OAuth 2 Request\"}]}"
Do you happen to know why this occurs? I guess you may have fixed it.
Also grant_type is an attribute not part top level key value pairs in OAuth documentation.
I changed the config as you suggested butt encountered the same error. Is there any other way we can fix this ASAP, since this ticket was raised as on high priority.
To add more context to this issue. This oAuth login with this Mavenlink app was working fine till a few days ago. A client reported this login failure issue on 20th October without any changes in the app. Are you aware of any changes in our platform w.r.t the OAuth authentication?
Requesting your help to expedite this one, as the client has already started escalating it.