hi, I''ve got an api which is using authenticate_or_request_with_http_basic What are you guys using to test this? I''m using rspec, and before I was using rspec-rails, I was using authorize from Rack::Test to do the authentication. However, authorize clearly doesn''t work when using rspec-rails, so I''m wondering what everyone else is doing? -- 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.
Download the Rails source code from Github and look at the http_basic_authentication_test.rb to see how to test http basic authentication. In general read the source code of popular plugins, you will learn how they solve common problems. Cheers, Bala RoR Developer Now Available for Hire On Thu, Jul 8, 2010 at 9:21 AM, anywho <eydaimon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hi, I''ve got an api which is using > authenticate_or_request_with_http_basic > > What are you guys using to test this? I''m using rspec, and before I > was using rspec-rails, I was using authorize from Rack::Test to do the > authentication. However, authorize clearly doesn''t work when using > rspec-rails, so I''m wondering what everyone else is doing? > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- http://www.rubyplus.org/ Free Ruby and Rails Screencasts -- 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.
Thanks but that didn''t help. I''ve followed the documentation here: http://api.rails.info/classes/ActionController/HttpAuthentication/Basic.html#M000214 I don''t understand why authorize broke, but nothing else I try seems to work either. Help is appriciated. On Jul 8, 4:57 pm, Bala Paranj <bcpar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Download the Rails source code from Github and look at > the http_basic_authentication_test.rb to see how to test http basic > authentication. > > In general read the source code of popular plugins, you will learn how they > solve common problems. > > Cheers, > Bala > RoR Developer Now Available for Hire > > > > > > On Thu, Jul 8, 2010 at 9:21 AM, anywho <eydai...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > hi, I''ve got an api which is using > > authenticate_or_request_with_http_basic > > > What are you guys using to test this? I''m using rspec, and before I > > was using rspec-rails, I was using authorize from Rack::Test to do the > > authentication. However, authorize clearly doesn''t work when using > > rspec-rails, so I''m wondering what everyone else is doing? > > > -- > > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscrib e@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en. > > --http://www.rubyplus.org/ > Free Ruby and Rails Screencasts-- 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.
I should probably mention that this is with rails3 and the file you refer to doesn''t exist in rails3 On Jul 29, 8:27 pm, anywho <eydai...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks but that didn''t help. I''ve followed the documentation here: > > http://api.rails.info/classes/ActionController/HttpAuthentication/Bas... > > I don''t understand why authorize broke, but nothing else I try seems > to work either. Help is appriciated. > > On Jul 8, 4:57 pm, Bala Paranj <bcpar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Download the Rails source code from Github and look at > > the http_basic_authentication_test.rb to see how to test http basic > > authentication. > > > In general read the source code of popular plugins, you will learn how they > > solve common problems. > > > Cheers, > > Bala > > RoR Developer Now Available for Hire > > > On Thu, Jul 8, 2010 at 9:21 AM,anywho<eydai...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > hi, I''ve got an api which is using > > > authenticate_or_request_with_http_basic > > > > What are you guys using to test this? I''m using rspec, and before I > > > was using rspec-rails, I was using authorize from Rack::Test to do the > > > authentication. However, authorize clearly doesn''t work when using > > > rspec-rails, so I''m wondering what everyone else is doing? > > > > -- > > > 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-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm. > > > To unsubscribe from this group, send email to > > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscrib e@googlegroups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/rubyonrails-talk?hl=en. > > > --http://www.rubyplus.org/ > > Free Ruby and Rails Screencasts-- 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.
here we go... I filed this ticket: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5246 On Jul 29, 8:31 pm, anywho <eydai...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I should probably mention that this is with rails3 and the file you > refer to doesn''t exist in rails3 > > On Jul 29, 8:27 pm, anywho <eydai...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Thanks but that didn''t help. I''ve followed the documentation here: > > >http://api.rails.info/classes/ActionController/HttpAuthentication/Bas... > > > I don''t understand why authorize broke, but nothing else I try seems > > to work either. Help is appriciated. > > > On Jul 8, 4:57 pm, Bala Paranj <bcpar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Download the Rails source code from Github and look at > > > the http_basic_authentication_test.rb to see how to test http basic > > > authentication. > > > > In general read the source code of popular plugins, you will learn how they > > > solve common problems. > > > > Cheers, > > > Bala > > > RoR Developer Now Available for Hire > > > > On Thu, Jul 8, 2010 at 9:21 AM,anywho<eydai...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > hi, I''ve got an api which is using > > > > authenticate_or_request_with_http_basic > > > > > What are you guys using to test this? I''m using rspec, and before I > > > > was using rspec-rails, I was using authorize from Rack::Test to do the > > > > authentication. However, authorize clearly doesn''t work when using > > > > rspec-rails, so I''m wondering what everyone else is doing? > > > > > -- > > > > 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@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscrib e@googlegroups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/rubyonrails-talk?hl=en. > > > > --http://www.rubyplus.org/ > > > Free Ruby and Rails Screencasts-- 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.