How do you enable customers to log in to your site using their Google account?

Abdulsattar Mohammed picture Abdulsattar Mohammed · Jan 26, 2009 · Viewed 12.3k times · Source

I just saw http://uservoice.com/login. It uses Google accounts, Myspace, Yahoo, OpenID and all to sign in customers into its site? Can I do that?

I mean, customers need not register to my site. They can just sign in with their accounts on the above sites.

If you've a solution, I'd prefer a PHP and MySQL based one.

Answer

Yaakov Ellis picture Yaakov Ellis · Jan 26, 2009

See here: Google Login PHP Class.

Also be sure to refer to the Google Federated Login site for more info.