title: app.UseOAuthBearerTokens with ASP.NET Identity 2.0's DbContext middleware?
body: <p>Edit: After progressing, I can narrow the scope of the question:</p>
  
  <p>What changes should be made to startup.auth.cs and ApplicationOAuthProvider.cs in the VS2013 SPA template (using ASP.NET identity 1.0) in order to migrate it to use ASP.NET identity 2.0?</p>
  
  <p><strong>Edit 2: I've simplified this question even further. How can one use app.UseOAuthBearerTokens with ASP.NET Identity 2.0's middleware for retrieving the DbContext?</strong></p>
  
  <pre><code>        app.UseOAuthBearerTokens(new Microsoft.Owin.Security.OAuth.OAuthAuthorizationServerOptions()
              {
                  //What goes here??
              });
  </code></pre>
  
  <p>(There's no example of this in the sample that's available.)</p>
  
  <p>There are significant differences from V1.0 to V2.0alpha of the Asp.net identity framework. There is an example available that shows how to use V2:</p>
  
  <p><a href="https://aspnet.codeplex.com/SourceControl/latest" rel="nofollow">https://aspnet.codeplex.com/SourceControl/latest</a>
  (see Samples->Identity->ChangePK)</p>
  
  <p>but that example is not MVC, or SPA. That being said, I've got an app that was built from the VS2013 ASP.NET SPA app (which incorporates Identity 1.0). I've been trying to implement the code in the sample inside my MVC app, but it's unclear to me what code from the VS2013 SPA template is removed in favor of the code from the sample.</p>
  
  <p><strong>Asked another way, does anyone have guidance for implementing ASP.NET identity 2.0 alpha inside an ASP.NET MVC app? (Ideally with steps to migrate from the VS2013 MVC SPA template which leverages identity 1.0)</strong></p>