Closed checkerschaf closed 3 years ago
Yes with PHP7 no 3legged-oAuth
I only got REQUEST and not APPLICATION in the Database when I tried to authentify the application. I found a error in the file: Imocaster/Data/Mysql.php In the function: saveApplicationToken() -304: 'APPLICATION','".$sToken."','".$sSecret."','0000-00-00 00:00:00.000000','".$sUser."' +304: 'APPLICATION','".$sToken."','".$sSecret."','1000-01-01 00:00:00.000000','".$sUser."'
The range from Datetime is 1000-01-01 00:00:00.000000 to 9999-12-31 23:59:59.999999 https://dev.mysql.com/doc/refman/5.7/en/datetime.html So the mysqli_query will never return true and so the script: Imocaster/Data/Rest.php with the funktion: registerAccess() will always fall back from function registerApplication() to registerRequest() and so you never get the application authentified.
I go on :-)
successfully tested. Please fix the bug. 🙏
Hey,
I'd recommend an update to PHP7 for maximum compatibility. Currently it's not working with many current releases of the most used frameworks.
Thanks!