adding security middleware to automatically validate basic auth, or jiveEXTN authorization