You make them supply a user/password *per request*? Ouch. What I would really like is a better way to handle before_filter's in my controllers within my ActionWebService::Base classes somehow. Maybe there's a way to accomplish what I want using the block form of the web_service method, but I'm not seeing it. Regards, Dan > service. I have a method like User.authenticate?(user) which > you can use a token mechanism to check if he is a valid user > > > > end > > > > > > Rails@lists.rubyonrails.org > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
on 2006-04-24 20:38
on 2006-05-03 19:05
It sounds a bit extreme, yes, but it's not too intrusive actually. I store the username/password before anything happens and then use it to access the web service. The user doesn't have to repeatedly enter data. Berger, Daniel wrote: > Dan >> >> >>> >>> redirect_to :controller => "login", :action => "login" >> >>> 'http://localhost/webservice/api', 3000) >>> looking for. That, or I'm just not "getting it". >>> >> Rails@lists.rubyonrails.org > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > -- Sau Sheong http://blog.saush.com http://www.projectible.com http://jaccal.sourceforge.net