title: ASP.NET Mixed Authentication
body: <p>I have 2 applications, one is Forms Authentication and looks like so:</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
          &lt;forms loginUrl="~/Login"&gt;&lt;/forms&gt;
        &lt;/authentication&gt;
  
  public class LoginController : Controller
      {
          public ActionResult Index()
          {
              return View();
          }
  
          public ActionResult LoginCheck()
          {
  
              string username = Request.Form["username"];
  
              FormsAuthentication.RedirectFromLoginPage(username, true);
  
              return RedirectToAction("Index", "Home");
          }
      }
  </code></pre>
  
  <p>The other application is empty but is using Windows Authentication:</p>
  
  <pre><code>&lt;authentication mode="Windows" /&gt;
  
  public class HomeController : Controller
      {
          public ActionResult Index()
          {
              ViewBag.Title = "Home Page";
  
              return View();
          }
      }
  </code></pre>
  
  <p>What I am trying to do is the following:</p>
  
  <ol>
  <li><p>The user fills in their username and password in the forms authentication application and clicks submit</p></li>
  <li><p>The LoginCheck method, takes the username and password and authenticates against the application that is Windows Authentication</p></li>
  </ol>
  
  <p>I am in hopes that I get a response from the Windows Authentication Application saying yes this username and password is correct, proceed or no they didn't work</p>
  
  <p>Am I on the right track on what I want to accomplish? My problem is I have no idea how to accomplish part 2, if someone could help me out that would be amazing or point me in the right direction.</p>