title: Using ASP.NET Identity for a Role Provider easily
body: <p>I just spent the last two days researching and implementing the new ASP.NET Identity system with my existing database. More on that here: <a href="https://stackoverflow.com/questions/21418902/integrating-asp-net-identity-into-existing-dbcontext">Integrating ASP.NET Identity into Existing DbContext</a>.</p>
  
  <p>Now, I have a working <code>UserStore</code> and <code>RoleStore</code>, but I can't seem to figure out how to leverage them in my ASP.NET MVC 5 application without writing what seems like colossal amounts of code like in all the Identity samples that confuse me.</p>
  
  <p>There's two things I want to achieve: 1) use cookies to maintain the authorizations and 2) use roles to limit application access both in what is rendered in the views and on the controllers.</p>
  
  <p>To be able to use those I need to obviously use the <code>Controller.User</code> property which represents the authorized user and peek into it's roles. How do I get my Identity implementation to make that happen?</p>
  
  <p>Lastly, in the Identity samples I see they're using OWIN, which I kind of get, but it seems like it's a super roundabout way, which I still don't get how to properly implement. As far as Claims, they confuse me twice as much as I understand them.</p>
  
  <p>I'd appreciate any pointers in the right direction.</p>