title: Using ASP.Net Identity 2 cookie in forms authentication
body: <p>I have an Owin Identity application and another application set up in a virtual directory. The virtual app is set up using traditional forms authentication, and both Web.configs have the same <code>&lt;machineKey&gt;</code> set. I can login using the Identity app, and can see the resulting cookie. However, when I try to access the virtual app it says I am not authenticated.</p>
  
  <p>In the Identity app, I have the following setup:</p>
  
  <pre><code>app.UseCookieAuthentication(new CookieAuthenticationOptions
  {
    AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
    LoginPath = new PathString("/login.aspx"),
    Provider = new CookieAuthenticationProvider
    {
      // Enables the application to validate the security stamp when the user logs in.
      // This is a security feature which is used when you change a password or add an external login to your account.  
      OnValidateIdentity = SecurityStampValidator.OnValidateIdentity&lt;ApplicationUserManager, ApplicationUser&gt;(
        validateInterval: TimeSpan.FromMinutes(30),
        regenerateIdentity: (manager, user) =&gt; user.GenerateUserIdentityAsync(manager))
    }
  });
  </code></pre>
  
  <p>And in the virtual app, I have authorization set up as follows:</p>
  
  <pre><code>&lt;authorization&gt;
        &lt;deny users="?" /&gt;
  &lt;/authorization&gt;
  </code></pre>
  
  <p>Any pointers to get the virtual app to recognize the cookie set by Identity?</p>