title: How to make vNext use my custom Identity code?
body: <p>I want to implement a custom sign in system because my users are stored in a different database and I just have a dll to verify credentials so I don't want a database. I just want the ability to login (with roles: admin and user) and logout for this app. In the database of the tool I save just the username and his role (no password).</p>
  
  <p>First: what classes must I implement achieve the desired effect?</p>
  
  <p>Second: how do I configure the app so it will use my custom code? </p>