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.



service. I have a method like User.authenticate?(user) which
you can use a token mechanism to check if he is a valid user


[email protected]

Rails mailing list
[email protected]

This communication is the property of Qwest and may contain confidential
privileged information. Unauthorized use of this communication is
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and
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:


     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]

Sau S.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs