cli/spec/authorize: fix for new middleware