YII and database authenticate using yii-apiAuth

40 views
Skip to first unread message

Shekar Tippur

unread,
Aug 9, 2014, 10:45:48 PM8/9/14
to yii-...@googlegroups.com
Hello,

I am fairly new to YII.
I have implemented restfullyii (https://github.com/evan108108/RESTFullYii#req.auth.user) and tested to make sure it works with 
curl -i -H "Accept: application/json" -H "X_REST_USERNAME: admin@restuser" -H "X_REST_PASSWORD: admin@Access" http://localhost:8888/workspace/pharma/index.php/site/login

After adding yii-apiAuth, I get a 401 - Which is good.
I have created a user table with admin and some standard password.
I now cant get the "http get or post" requests to authenticate.

Appreciate any help.

- Shekar
Reply all
Reply to author
Forward
0 new messages