Rails authentication from non-web interface

Hi all,

I want to authenticate my mobile phone apps to my online Rails apps.
What would be the best approach to do this? Can anybody give
suggestion both on how I should do it in the mobile app and in the
rails app?

Thank you very much for your help.

Kind regards,
Joshua


http://twitter.com/scrum8

Hi Joshua,

On Mon, Jun 14, 2010 at 7:12 AM, Joshua P.
[email protected] wrote:

Hi all,

I want to authenticate my mobile phone apps to my online Rails apps.
What would be the best approach to do this? Can anybody give
suggestion both on how I should do it in the mobile app and in the
rails app?

I’ve got a similar situation with 2 apps, both Rails apps, where the
one making the request uses the Ruby Net::HTTP library to send its
requests, authenticating using BasicAuth inside SSL. The requests are
made to a RESTful interface so the receiving Rails app doesn’t
distinguish, except in terms of the format of the response, between
getting the request from a browser or an app.

HTH,
Bill

Hi Bill,

Thank you for the hint and explanation. That really helps. I will try
from here. =)

Kind regards,
Joshua.

Yeah, I am working on exactly similar project and using http basic
auth over https.
Though what is the best way to disable cookies and session management
in rails as these are not required
in the above approach.

Thanks
Gopal

On Mon, Jun 14, 2010 at 8:12 AM, Joshua P.
[email protected] wrote:

Hi all,

I want to authenticate my mobile phone apps to my online Rails apps.
What would be the best approach to do this? Can anybody give
suggestion both on how I should do it in the mobile app and in the
rails app?

I’d set the rails app to accept http basic authorization over https,
and have the mobile app store the user’s password.

Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Github: rubyredrick (Rick DeNatale) · GitHub
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale