views:

48

answers:

1

I am implementing single sign on and i have the login name and password from the parent site and would like to insert this values in the login and password field of the child site. How can i do this in C#, MVC. as of now i am able to populate the login name using viewdata but i m unable to populate the password.

+3  A: 

That is not single sign on. That is multiple sign-on with a giant security hole.

What you are looking for is federated identity. In this model, a trusted identity provider supplies the identity of the user to each site. Stack Overflow, for example, trusts Google (and other sites) to provide user identity. So instead of having a password system built-in to Stack Overflow, SO as a means of just asking Google who you are.

One popular way to do this is OpenID. Another way to do it, which is useful if you are using corporate security such as a Windows domain, is Windows Identity Foundation.

Craig Stuntz