I’ve browsed through this forum and ruled out these possible reasons for the error:
redirect_uri is the same for first “authorize” request (which works; I get back the temporary code) and the actual “access token” request (which fails with above error)
“if_tmp_code” → is the “code” URL parameter value grabbed from the URL after redirected back to my app (after Infusion completed step “Request Permission”).
“redirect_uri” → is the same URL we just where redirected to from Infusion (after Infusion completed step “Request Permission”) - without the url parameters (e.g. “code” or “scope”).
–
What do you think about this?:
I would double check that the redirect_uri matches what you registered with in the developer portal
Is this advice outdated?
If no: Could you point me where I need to “register” the redirect url in the dev administration app?
(two years old) is heavily used (accessed via Infusion-PHP-SDK).
(two years old) is occasionally used (accessed via Infusion-PHP-SDK).
(new one, which I plan to use to replace the two above ones; use NodeJS) is in “waiting” state for two weeks now (see here).
Long story short, I couldn’t afford to delay development of my newest api wrapper until the third app is approved by Infusion, so I decided to access, for the time being, the second app.
Question: May this be the reason of my troubles? Is it ok to request an access_token with “Infusion-External-App-B” if there is already an access_token for “Infusion-External-App-A” for one “Infusion-Internal-App-Registration”?
If you’re reusing an existing Application key, you’ll need to proxy the callback through that to your new app, but you would then be reusing quota from the first one.
This error will result from an app in mashery that has not yet been set active but is still in a pending status. Check mashery to be sure but that’s one of the most common reasons for the message.
Sorry for the delay in getting back to you. This is caused by your client_id not being active. So either either the client_id has been deleted or is in a waiting state. Hope this helps. Also I would check to make sure you are using the right client_id.
Hi there? I face the same problem, I keep getting invalid_client, everything seem correct, yet still getting the error invalid_client. When I check on my return header I got this:
You will need to provide what your request looks like url, payload, header, etc so we can help. Mask you client_secret and any authorization code though, because that is sensitive data.