Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 973
Abdulsattar Mohammed Avatar asked Jan 26 '09 11:01

Abdulsattar Mohammed


People also ask

How does sign in with Google work?

Sign In With Google helps you to quickly and easily manage user authentication and sign-in to your website. Users sign into a Google Account, provide their consent, and securely share their profile information with your platform. Customizable buttons and multiple flows are supported for user sign up and sign in.


4 Answers

See here: Google Login PHP Class.

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

like image 154
Yaakov Ellis Avatar answered Oct 12 '22 01:10

Yaakov Ellis


You may want to look at this too: https://rpxnow.com/ - it will only need integrating at the HTML/javascript level.

It's what http://uservoice.com/login appears to use.

like image 38
DanSingerman Avatar answered Oct 12 '22 03:10

DanSingerman


You should look at the OpenID Enablded PHP library (http://www.openidenabled.com/php-openid/).

This should play pretty nicely with any LAMP installation without needing to use Zend.

like image 27
sh1mmer Avatar answered Oct 12 '22 01:10

sh1mmer


Zend_OpenId from Zend Framework

Zend_OpenId is a Zend Framework component that provides a simple API for building OpenID-enabled sites and identity providers.

like image 25
Karsten Avatar answered Oct 12 '22 01:10

Karsten