ForumsDevelopersHelp on API /PHP


Help on API /PHP
Author Message
yannbis

Posted: Jul 21, 2015
Score: 0 Reference
Hello, I’m quite a newbie using API’s, but I try !
I have implemented the PHP API example and it works well, but during authenticating process, I have to click on the “Sign in” to be authenticated. (https://github.com/Toodledo/oauth2-php-reference)
I would like to adapt this example to have a full automatic authentication, without any user action. This leads to include account login and password in the php script (for test purpose), but I don’t understand well enough the authentication process to achieve it.
Any idea welcome!
Thank you.
Yann
Jake

Toodledo Founder
Posted: Jul 27, 2015
Score: 0 Reference
It is not recommended to authenticate without any user interaction. The way you should do it is have a real person do the authentication once. This way they can enter their password and 2-factor key (if configured) without compromising the security of their account. Once they authenticate your app will get some tokens which you can use as long as you want to use the API without any further user action.
You cannot reply yet

U Back to topic home

R Post a reply

To participate in these forums, you must be signed in.