current_user Authlogic & Service.rb

Hi,

I am using Authlogic & Weborb to remote from as3.

Is it possible to access current_user, which is defined in a helper method in the application controller, in a Service class.

Thank you in advance,

John.

I have the same question, did you ever find a solution?

Unfortunately not. There are many posts regarding the wrongness of passing a variable to a model for example (which makes sense) and I just assume the same wrongness in our case - however no suggested solution. Just for fun I stuffed some of the user info into a global in the user sessions controller and it failed (as expected) in production. I tried also to stick it into the session. There must be something that can be done in the weborb config. The weborb forums are no help. In the mean time I temporarily solved my problem by identifying the user via ip address (which I can do in my situation).

If you find anything that works, please let me know.

Unfortunately not. There are many posts regarding the wrongness of passing a variable to a model for example (which makes sense)

Why do you need the current user in the model?

Colin

Why do you need the current user in the model?

Colin

I don't need it in the model. I need it in a service class. When remoting from as3, I can only call functions defined in such a class.