CredNet is a library for easily creating windows credential providers with .Net.
Install-Package CredNet