Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cross Domain Authentication

I am Curious about how cross domain authentication work? for example. To sign into Orkut.com you need to to sign in via Google.com. So the authentication happens at Google.com and it sets the cookie. So my question now is how does Orkut.com able to read this cookie or authenticate the user with no other information ?

What can possibly go wrong?

like image 803
gnosio Avatar asked Jun 26 '09 06:06

gnosio


People also ask

What is cross-domain authentication?

Cross-domain authentication is a common approach in identity management that authenticates users for sites that run on different domains. ReachFive handles this even for browsers that block third-party cookies. Cross-domain authentication is much more streamlined when using SSO.

How do you implement cross-domain authentication?

Show activity on this post. Using an authentication token should work fine, but consider these points: Use a strong PRNG to generate the token, and generate a long token to prevent bruteforcing. Make sure a used token will instantly be invalidated to prevent replay-attacks.

How does SSO work across domains?

The SSO domain authenticates the credentials, validates the user, and generates a token. The user is sent back to the original site, and the embedded token acts as proof that they've been authenticated. This grants them access to associated apps and sites that share the central SSO domain.

What is cross-domain in Active Directory?

Caution: Active Directory cross-domain authentication requires one-way trusts between the domains or forests. However, Data Hub requires two-way trusts between the domains or forests. If it's not possible to provide two-way trusts between the domains or forests, claims-based authentication may be used instead.


2 Answers

This link might be helpful.

http://code.google.com/apis/accounts/docs/AuthForWebApps.html

Keep in mind, Orkut is one of the Google services.

OpenID is another solution which actually used in SO.

like image 54
jimx Avatar answered Sep 28 '22 21:09

jimx


orkut is probably using google's OpenID+oAuth for authenticating users. This means that you probably have a google identitity url stored in your orkut profile, and orkut sends you to google so that you can verify that the users signing in through the browser do indeed own the google identity. If orkut gets verification that you own the identity, then orkut can safely assign you the autentication cookies for orkut.

like image 29
Sean Kinsey Avatar answered Sep 28 '22 20:09

Sean Kinsey