简体   繁体   中英

Sharing session data between two applications (Rails)

There is an existing application that a user logs into. At a certain point within the existing user workflow the new application I am working on takes over for the existing application and some data from the current session needs to be shared. I was given an idea of digitally signing the data to ensure it is secure, but I am having trouble figuring out how I would implement this and how to share the session. The application I am working on is a rails app.

My question really contains two parts, if you have an idea for one and not the other, that's great:

1) Do you have an idea on how I would share the session between both applications?

2) Would you have an idea on how I would use public/private keys to encrypt the data I am sending?

You can use RubyCAS for manage sessions between applications. It's easy to use and you can integrate it with Devise.

https://github.com/rubycas/rubycas-client

https://github.com/nbudin/devise_cas_authenticatable

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM