7

I want to know how stackoverflow.com enables login via my Gmail Account.

Is there any arrangment between the two companies? Or its just an api ?

Does Gmail send information to Stack Overflow?

Where can I find the API?

3 Answers 3

8

This is called Open ID based authentication this is a very nice presentation which explain Why and How it works

When you go to some site like stackoverflow it gives you option to login via Yahoo or Gmail or any other Open ID provider.

Let's say you choose Yahoo. StackOverflow will then ask Yahoo to authenticate you using your ID + password and give stackoverflow result whether you were successful or not. If you are successful, stackoverflow now know you are authentic user and it will log you in. In this way stackoverflow can avoid storing user ids and password for every member and you can avoid need of creating another ID just for stackoverflow

8

Its called OpenID, google just implements the protocol.

1

As you can see via the login page, SO have used G apis with several other vendor API's along with OpenID as TJ mentioned. So upon logging in, the G API redirects back to the SO with the login information stuffs.

Even making use of the same API's, you could have your website do the same.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.