19 Jan 2012 The One With a JSON API Login Using Devise The situation: You need to add an iOS app to your Rails application. Users can login to both locations, and you’re using Devise for authentication. The problem: How do you authenticate users on the iPhone using an email/password created on the website? And how do you tell Devise not to redirect to a login page when you’re using a JSON API?