Simplifies the creation of custom authentication handlers and owin middleware.