Marcelo de Moraes Serpa
2007-Nov-12 12:05 UTC
RESTful authentication for REST web services.
Hello, I''ve already searched google, but most of articles make the assumption that the user agent is a browser. What if the user is accessing the same REST controller action via another client (another ruby script for example)? How could I restrict it to users that have an account in the system? it''s really a basic question - the app only serves certain parts of the website for logged users when accessed through a browser user agent, I want the same thing to happen when someone is accessing it from another client and the app is responding the same action with a different format (XML or RSS for example) Thanks, Marcelo. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I believe the typical method is to use http authentication. --Michael On Nov 12, 2007 6:05 AM, Marcelo de Moraes Serpa <celoserpa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hello, > > I''ve already searched google, but most of articles make the assumption > that the user agent is a browser. > > What if the user is accessing the same REST controller action via > another client (another ruby script for example)? How could I restrict > it to users that have an account in the system? > > it''s really a basic question - the app only serves certain parts of > the website for logged users when accessed through a browser user > agent, I want the same thing to happen when someone is accessing it > from another client and the app is responding the same action with a > different format (XML or RSS for example) > > Thanks, > > Marcelo. > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---