This project shows how to create an Authentication system based on Dot Net, Owin, Web Api and Json Web tokens. It also shows how to create nuget packages for the Authorization and Resource server.
This code is backed up by a blog post as well which can be found at http://eidand.com/2015/03/28/authorization-system-with-owin-web-api-json-web-tokens/