I would like to start working on an idea I have for an iphone app, but I am having some issues on where to begin. I would like the app to be mostly used on the iphone but have some functionality on the web app such as logging in and viewing things created from the iphone app. I have started a rails3 app and would like to use this as my backend for the api/app.
I am confused as to how I should go about with an authentication system so that this app can work both as a web app and an api for an iphone app.
I want to use omniauth for the login on the web and iphone app because I only want users to login with twitter and/or fb, but I don't know how to authenticate requests once the users is logged into the iPhone app. I know some other gems like devise allow for things like a api key authenticatable column that makes signing api calls easier, but I think its way too bloated of a auth system to use.
Can anyone give me advice on how to go about making an authentication system that will work both as a webapp and when authenticating over an api with an iphone.
Thanks!