Rails: authentication system based on external API
- by Slevin
i'm building a Rails application to extend features of an existing online Rails app. The existing Rails app provides an API for authentication.
My approach: user X have an account at the existing Rails app. With these login data the user X should authenticate on my Rails app. The existing app offers a gem to connect to the API after login.
Whats the best method to store the information about a successful login? Should i use sessions? Or does Rails offer better methods for this?