views:

252

answers:

2

Im looking for a step by step tutorial that covers Google's Federated Login process using php and cURL. All needs to get dumped into codeIgnitor so it really needs to be easy to follow.

+1  A: 

I don't know of a tutorial, but there's at least one existing library that is specifically targeted at this; perhaps looking at its code is a good place to start?

See the Google Federated Login API group for more discussion about this class.

At its core, the Federated Login API is OpenID, and there are lots of libraries that will do OpenID. You might want to start with one of those. I clicked on the first listed PHP library; it has a demo site which I've verified works with Google's Federated Login (by manually supplying https://www.google.com/accounts/o8/id as the URL; or by supplying http://google.com/profiles/<<username>>)

(StackOverflow's login page provides a big "Google" button - all that does is fill in https://www.google.com/accounts/o8/id as the OpenID url and then submit the form)

James Polley
Thanks again James - I really don't like that lib, there must be a more simplified way.
Derrick
A: 

This looks promising:

http://www.andrewpeace.com/php-google-login-class.html

Derrick