So I figured it out. Connecting to the user database (as lolindrath suggested) to allow the newer app to have access to the user database gets us half way there. The user can now login to the newer app with restful just like the old app, but the authentication doesn't transfer from one app to the other.To allow a single login to work for both apps, you have to copy the cookie session data from the older app to the newer app.
So I figured it out. Connecting to the user database (as lolindrath suggested) to allow the newer app to have access to the user database gets us half way there. The user can now login to the newer app with restful just like the old app, but the authentication doesn't transfer from one app to the other.To allow a single login to work for both apps, you have to copy the cookie session data from the older app to the newer app.
So, in the . /config/initializers/sessiont_store. Rb file paste the below data from the old app to the new app (older versions of rails has it in the .
/config/environment. Rb file): ActionController::Base. Session = { :domain => '.localhost.
Com', :session_key => '_Project_name_session', :secret => '09808ajdsfkljdfwu309jas3longerkey' }.
If you use the same version of the authentication plugin you can use a different database to authenticate against. Rails doesn't handle multiple database connections so you'll have to use a hack like this: Multiple Database Connections in Ruby on Rails. Then install the exact same plugin as you have in the old app so that it uses the same database schema.
Then in the User model switch the database connection to the old database.
Thanks lolindrath. Would this setup allow a shared session between the apps, so that if a user logged into the older app and then clicked on a link to the newer app they would not have to login again? I was under the impression this setup would allow authentication to the same database but not shared sessions across apps.
– chase Feb 17 '10 at 18:50.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.