Koa compatible route authorization middleware.