Ok here’s my problem in a nutshell I’ve built a web service from ruby on rails. I’m using restful_authentication to create and run the login but I’m also building an iPhone application to access my web service but I can’t quite figure it out. I was wondering if anyone could help me figure out a place to begin.
Share
Are you asking from the iphone side or the rails side?
For Rails, I think you should either use the basic_authentication features of restful_authentication to take in a username password and authorize your request, or follow this article: http://www.compulsivoco.com/2009/05/rails-api-authentication-using-restful-authentication/ which lets you login via an API Key
The iPhone side is simpler if you use the api_key; just append it to your http headers and you’ll be good to go.