RE: web services and dealing with before_filter

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

[email protected]


Rails mailing list
[email protected]
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.

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”.

[email protected]


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Sau S.

http://blog.saush.com
http://www.projectible.com
http://jaccal.sourceforge.net