1036628
Create an api_authenticated utility method This method ensure that not only the user is authenticated but that he/she is at the API level avoiding situation where the user is authenticated in the web UI and tries to access the API.