A few interfaces need to be implemented:
IUserStore<TUserType>IRoleStore<TRoleType>
TUserType and TRoleType are custom classes that represent a user or a role. There are other interfaces that can be implemented which also implement one of the interfaces above. For example IUserRoleStore or IUserPasswordStore which both also implement IUserStore. Use them in combination to obtain more customization, for example if you want to override how roles get stored against the user.
Once those are implemented, you need to enable identity and also set the user and role store implementations:
