Best practice for storing ASP.NET Core Authorization claims when authenticating users against Active Directory? : <p>I am creating an enterprise intranet ASP.NET Core MVC application.  I want my users to authenticate using Active Directory and I want user authorizations (claims) stored in <em>ApplicationDbContext</em>.</p>

<p>I assume that I need to use <em>Microsoft.AspNetCore.Identity</em> and <em>Microsoft.AspNetCore.Identity.EntityFrameworkCore</em> to accomplish my goals.  What is the best practice for storing ASP.NET Core Authorization claims when authenticating against Active Directory?</p>

<p>The following code will give me access to the current windows user security context (current logged in user), from within the pipeline.  Somehow I need to map the user with associated <em>Microsoft.AspNetCore.Identity</em> claims?</p>

<pre><code> app.Use(async (context, next) =&gt;
 {
      var identity = (ClaimsIdentity) context.User.Identity;
      await next.Invoke();
 });
</code></pre>

<p>Thanks in advance for the help!</p>
