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).
First: what classes must I implement achieve the desired effect?
Second: how do I configure the app so it will use my custom code?