Php – Login system just like stackoverflow’s, written in php


The question Is there a simple way to implement the login system that stackoverflow uses using php?

For a long time I have developed websites, and have used a typical web form username/password with a mysql db for login systems.

I would like to have it so users can log into the system using google, yahoo, facebook, etc, and without them having to remember some long openid url (they should just click google and be able to log in using their username/password there).

I would prefer not to use a service provider (such as RPX) to implement this.

Best Solution

If you want to implement it yourself, here is a great walkthrough. There's also the PHP OpenID Library, but that's probably a lot more than you need.

Here is the client-side OpenID selector that SO uses on its login screen.

Edit: Stack Overflow no longer uses the one that I linked to, but it still works, as far as I'm aware.