Google Login Interface

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
camhabib
Forum Commoner
Posts: 37
Joined: Tue Aug 16, 2005 8:36 pm
Location: Boston, MA

Google Login Interface

Post by camhabib »

Here is situation: I have a database with Google usernames and passwords. I need some way to either a) bypass the Google login screen by submitting those usernames and passwords directly or b) pre-populate the Google login form with the stored usernames and passwords. I have been in touch with a Google engineer and there is apparently no such API available. Any suggestions or help on how to get this done would be greatly appreciated.
Phix
Forum Newbie
Posts: 21
Joined: Tue Jan 12, 2010 11:50 pm

Re: Google Login Interface

Post by Phix »

Sounds like a huge security nightmare, which is probably why no such API exists.

You can do the latter with some javascript I'm sure. Still sounds iffy.
User avatar
JNettles
Forum Contributor
Posts: 228
Joined: Mon Oct 05, 2009 4:09 pm

Re: Google Login Interface

Post by JNettles »

Most sites worth their salt with forms like these have a hidden input in their HTML code - a randomly generated token that is checked by the server and acts like a key for processing. This prevents people from doing exactly what you're trying to do - which is post foreign data to their processing routines. Unless you can get the algorithm that generates their token you're out of luck automatically logging people in.
Post Reply