API authorization middleware for ee-webservice