I have a Zend Framework application that I am trying to configure, so I can use the iPhone application. Everything in my ZF application requires that you log in first.
In the browser, you will go to myapp.com/auth/loginand get a login form. When you authenticate successfully, a cookie is set to remember that you are logged in (I think this works). It also redirects you to the home page and displays HTML.
Ideally, my iPhone application will authenticate (somehow) against my ZF application and get a JSON response. He can then make future requests authenticated. So far, my iPhone application sets up the login credentials as POST data and goes to the login page, and the ZF application returns the HTML page of the home page (or the page with the verification error).
I am looking for answers to "best practices." Perhaps I am asking the wrong question. Maybe I don’t need to think about “RESTful authentication”. What is the best approach to configure my Zend Framework application to allow my iPhone application to authenticate and make requests?
source
share