ForumsDevelopersOAuth2: Authorization code doesn't exist or is invalid
OAuth2: Authorization code doesn't exist or is invalid
Author | Message |
---|---|
cb_1374830848 |
Hi there,
I tried to connect to toodledo via Oauth2, integrated within google apps script but keep getting: {"errorCode":102,"errorDesc":"Authorization code doesn't exist or is invalid for the client"} Google Apps Script ist pretty straight forward to use, you can either add Javascript to a Drive Document, or run it standalone. I used this library and followed the description: https://github.com/googlesamples/apps-script-oauth2 The code is here: https://gist.github.com/solars/98b5d12e9987e8a758bc See run() - I just fetch the authorization code with my details (and get it) but then cannot use it to fetch the token. Can anyone tell me what could be wrong here? I don't see it... Thanks a lot, Christoph This message was edited Feb 09, 2016. |
cb_1374830848 |
Stupid me - apparently I confused it, it already is the access token ..
|
Jake Toodledo Founder |
I am not familiar with the Google Apps Script so I cant say for certain what is happening. Here is our documentation on authentication:
http://api.toodledo.com/3/account/index.php I suspect that you are not getting the authorization code from the redirect correctly and are either sending am empty code or altered code back to Toodledo in exchange for a token, and that is why you are getting that error. The website is saying that the authorization code you sent is either blank (you didn't send one) or we have no record of it (you sent the wrong one). |
You cannot reply yet
U Back to topic home
R Post a reply
To participate in these forums, you must be signed in.