Require authentication for API requests.