I'm working in web2py with a team using ruby. I want to get our two
apps to interact smoothly. Our apps share a user table in common. The
user table is defined in the ruby app. I would like to use the auth
routines, but I'm not sure I know how I would do it under these
circumstances.
In the absence of an auth, I figured I would check a session ID passed
to me by the ruby app. The ruby app would be, in effect, saying this
user with id x has this unique session ID. As long as the session ID
is active, the user is logged in.
So, assuming ruby gives me a user id and a session number, is this as
simple as me declaring:
session.id='<some unique ruby session identifier>'
or do I have to do something more?
The other alternative is that I hook up to the ruby app's MySQL
database and get the user's ID directly from the database. This is
even more desireable since I could then directly update the user's
profile with information from my app. How would this be done?