Thank you for these scripts.
I got it all working on one server of mine. Now I want to do the same on a customers server, but it works until after I accept the stuff at https://accounts.google.com/o/oauth2/auth. Then I return to my login_with_google.php page and the page stays empty with an URL like:
****.is/_oath/login_with_google.php
...
I get no error or anything, even with error_reporting on. Just a blank page. Why does it work on my own server but not on the customers server?