title: Custom RoleProvider in ASP.NET Core with Identity?
body: <p>In past MVC versions I was able to do</p>
  
  <pre><code>&lt;roleManager enabled="true" defaultProvider="...." ...
  </code></pre>
  
  <p>in to the web.config to get a custom role provider, but that doesn't seem to be the case anymore.</p>
  
  <p>Essentially what I want to do is:</p>
  
  <ol>
  <li>The user logs in.</li>
  <li>On success, get roles for user from external source.</li>
  <li>Apply roles to user to be used in code.</li>
  <li>Match user roles to roles in custom RoleProvider</li>
  </ol>
  
  <p>How do I do this in ASP.NET Core?</p>