title: MVC 5 customise OWIN authentication options in web.config
body: <p>Is it possible to specify some of the options in the web.config file? When creating a new project you get this startup class by default and the old forms authentication section is web.config is gone.</p>
  
  <pre><code>    // For more information on configuring authentication, please visit http://go.microsoft.com/fwlink/?LinkId=301864
      public void ConfigureAuth(IAppBuilder app)
      {
          // Enable the application to use a cookie to store information for the signed in user
          app.UseCookieAuthentication(new CookieAuthenticationOptions
          {
              AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
              LoginPath = new PathString("/Account/Login")
          });
          // Use a cookie to temporarily store information about a user logging in with a third party login provider
          app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);
  
      }
  </code></pre>
  
  <p>I'd like to be able to specify some of the options on CookieAuthenticationOptions listed here:</p>
  
  <p><a href="http://blogs.msdn.com/b/webdev/archive/2013/07/03/understanding-owin-forms-authentication-in-mvc-5.aspx#_Understanding_OWIN_Forms" rel="nofollow">http://blogs.msdn.com/b/webdev/archive/2013/07/03/understanding-owin-forms-authentication-in-mvc-5.aspx#_Understanding_OWIN_Forms</a></p>
  
  <p>in web.config (like the expiry timeout for example).</p>