Authlogic: Create records on other users' behalf
Posted
by Friðrik
on Stack Overflow
See other posts from Stack Overflow
or by Friðrik
Published on 2010-03-25T17:11:12Z
Indexed on
2010/03/25
17:13 UTC
Read the original article
Hit count: 318
authlogic
Hi
Using Authlogic, what is the best way to create a record in rails on other users' behalf?
Description: I have a c++ server which handles Tcp connections from many c++ clients, and I want the c++ server to create a new record in the rails database using its REST api. However, the c++ server needs to be authenticated before creating that record. What I want is to attach the original user ID (from the c++ client) to the record (but not the servers) so I know from which user the record came from.
One way is for the c++ client to send its persistence token over to the c++ server which sends that token as a parameter to the create action, does that make sense? or are there maybe some better ways to do this?
I have a rails app which uses authlogic for authentication.
I also have another c++ client which is logs in and provides
I have a c++ server which uses
© Stack Overflow or respective owner