I followed the tutorial - www.yiiframework.com/wiki/175/how-to-create-a-rest-api/ - to create my API and generally got it to work. However, I am having issues with authentication. Here’s how I am passing the username, password in the headers.
Solved. I was missing the constant APPLICATION_ID in the HTTP_X_USERNAME and HTTP_X_PASSWORD. I had set the constant to ‘’, and it did not work. Once I had a value in there, it worked. Can anyone explain why that is a requirement?