view decorator to check authorization and
 a basic auth middleware to mapproxy