Single-Sign-On ASP.NET MVC


Single-Sign-On ASP.NET MVC



We are trying to build a cross-domain single-sign on solution using ASP.NET MVC.

Any existing solutions or tutorials available ?




Facebook IFrame Application issues for certain users

1:



programmatically logout a “specific” user
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).


Asp.net mvc html melper
.
Proper way to build a data Repository in ASP.NET MVC
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:.
Why use TagBuilder instead of StringBuilder?
public void Login(string userName, string password) {     if(AuthenticateUser(userName,password))     {         Response.Redirect(String.format("{0}?{1}={2}"),              Request.QueryString["ReturnUrl"],             FormsAuthentication.FormsCookieName,             FormsAuthentication.GetAuthCookie(userName, false).Value));     } } 
On the local application you have to enable cookieless forms authentication, and allow authenticated users to come from external applications by setting enableCrossAppRedirect..
Difference between HtmlTable and TagBuilder(“table”)
<authentication mode="Forms">     <forms enableCrossAppRedirect="true" cookieless="useUri" /> </authentication> 
Notes:.
Detect whether or not a specific attribute was valid on the model
  1. See also FormsAuthentication.RedirectFromLoginPage - http://msdn.microsoft.com/en-us/library/ka5ffkce.aspx..
    How to get parameters out of an ascx back to the main aspx page
  2. In my case ReturnUrl lost domain part of url :(.



64 out of 100 based on 59 user ratings 684 reviews