Posted on 2008-11-24 14:28:13-08 by ayagovdik
API login with auth token
Hi, all.
I have a problem.
My task is implement simple REST API interface for three methods:
* Login (url: API/login)
* Method1 (url: API/user/<token%rt;/method1)
* Method2 (url: API/user/<token%rt;/method2/<data%rt;)
The last two methods should use a token (actually session_id) parameter from URL.
As far as I understand I should implement my own backend for Session::State functionality. But I cannot register this backend right. Catalyst was request me for use Session::State.
Please advice me which plugin should be used in this case.
If it possible, then provide the code fragment or link to this example.
Thanks.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.