OWIN middleware to apply security features.