I've developed a simple store application in Rails 3.0 with Devise as an authentication mechanism (only authorized users can access it). I also wrote a native android applicaion, from where I need to login to this web application, authenticate (using email, password) and access the default controller and get the data in JSON format.
So my questions are:
How would I authenticate with Rails app from mobile app securely? Can I test this with curl program calling
/users/sign_in
? How would I specify the parameters (email and password) securely? What is the general convention in this situation?And how do I format data in JSON instead of default XML?
Any ideas? I appreciate your time and thoughts.