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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi Joshua, On Mon, Jun 14, 2010 at 7:12 AM, Joshua Partogi <joshua.partogi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi Bill, Thank you for the hint and explanation. That really helps. I will try from here. =) Kind regards, Joshua. On Jun 14, 10:26 pm, Bill Walton <bwalton...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Joshua, > > On Mon, Jun 14, 2010 at 7:12 AM, Joshua Partogi > > <joshua.part...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Mon, Jun 14, 2010 at 8:12 AM, Joshua Partogi <joshua.partogi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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: http://github.com/rubyredrick Twitter: @RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 Jun 15, 4:45 am, Rick DeNatale <rick.denat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mon, Jun 14, 2010 at 8:12 AM, Joshua Partogi > > <joshua.part...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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:http://github.com/rubyredrick > Twitter: @RickDeNatale > WWR:http://www.workingwithrails.com/person/9021-rick-denatale > LinkedIn:http://www.linkedin.com/in/rickdenatale-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.