We are trying to build a cross-domain single-sign on solution using ASP.NET MVC.
Any existing solutions or tutorials available ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you web applications are on the same server and same domain then all you need to do is insure that the Validationkey and encryption key are the same in the web config (machineKey).
In your example you will need to append the authentication ticket to the query string, to transport it back to the other domain, for example:
On the local application you have to enable cookieless forms authentication, and allow authenticated users to come from external applications by setting enableCrossAppRedirect.
Notes:
See also FormsAuthentication.RedirectFromLoginPage
– http://msdn.microsoft.com/en-us/library/ka5ffkce.aspx.
In my case ReturnUrl lost domain part of url 🙁