Thanks for the response. My application is running ASP.NET Web Forms. Unfortunately, I am not able to get single sign on working.
For testing, I created a simple second web application that has the same <forms> and <machinekey> elements in the web.config as the MonoX web.config. For the machineKey, I added and modified the validationKey and decryptionKey so that they match in both web.config files. Therefore, they should share the same ticket.
I created a simple login page on my main site that logs in the user "mary", creating the forms authentication ticket:
FormsAuthentication.SetAuthCookie(
"mary"
,
false
);
FormsAuthenticationTicket ticket1 =
new
FormsAuthenticationTicket(
1,
// version
"mary"
,
// get username from the form
DateTime.Now,
// issue time is now
DateTime.Now.AddMinutes(10),
// expires in 10 minutes
false
,
// cookie is not persistent
""
// role assignment is stored
// in userData
);
HttpCookie cookie1 =
new
HttpCookie(
FormsAuthentication.FormsCookieName,
FormsAuthentication.Encrypt(ticket1));
Response.Cookies.Add(cookie1);
Response.Redirect(
"Default.aspx"
);
However, when I go back to the MonoX site, the User.Identity.Name is blank, instead of being "mary".
Please tell me if there's something I'm doing incorrectly.