I have a Rails application for which I use devise to authenticate my users and this works great. I now want to write an iPhone application (not just a WebUI but a proper APP) that accesses the same data and so requires the same authentication. How should I go about doing this?
I want to login using devise and keep the session open so that queries back and forth work as they do on my website. I am very new to both rails and devise.
I’m trying to do the same thing actually. I also have a Rails application, using the Devise Authentication Gem that I would like to create an iPhone App for. I don’t know if I have a good answer for you yet, but here’s some things I’ve learned along the way…
According to the README on the Devise GitHub page, it seems that Devise is implementing RESTful authentication with these 2 modules:
With HTTP Basic Authentication, your iPhone app won’t have to re-authenticate with each request. You will only have to authenticate once, then the framework will remember that it has authenticated.
A few resources that may be helpful for you getting started: