I have 2 rails apps on the same domain. i want the single sign on feature to be added to them. i would prefer to maintain separate database for each app..
Can anyone please tell me how to do this?
Thanks in advance, Ak
I have 2 rails apps on the same domain. i want the single sign on feature to be added to them. i would prefer to maintain separate database for each app..
Can anyone please tell me how to do this?
Thanks in advance, Ak
You might want to look into OpenID and RubyCas.
But since your apps run on the same domain you can share sessions by setting the domain name in config/environments/production.rb (assuming sub domains):
ActionController::Base.session = {
:domain => ".example.org"
}
Don't forget to set the same session_key and secret across the apps.
config.action_controller.session = {
:session_key => 'my_shared_session_key',
:secret => 'awesome_super_secret_key'
}