realtebo
(Mirkotebaldi)
1
I need a very very simple webservice given a string as output.
This could be very easy in Yii, as documented in definitive guide, but my question is : how to handle username and password?
this webservice requires authentication. because action is under RBAC role restritions.
redguy
(Maciej Lizewski)
2
as you need a webservice, probably best way will be http basic auth (for example: http://www.yiiframework.com/extension/httpauth/)
realtebo
(Mirkotebaldi)
3
I don’t want an extension, I want to learn how to do this with Yii.
redguy
(Maciej Lizewski)
4
so look at that extension code…
redguy
(Maciej Lizewski)
6
what is so funny? Didn’t it helped? It is just very simple filter you may apply on particular controller or application wide.