Hi Drupal Gurus,

I am working on a website that uses Drupal as the CMS and ruby on rails as the main app. I would like to integrate the two in a way so that the user does not have to login twice, once for Drupal and once for the ruby on rails app. Does anyone have any experience with this? I was thinking of have my ruby on rails app read the authentication cookie of drupal. However, I am not sure how to decode the drupal cookie or if this would work. While searching for a solution and I encountered this article but I am quite confused by it.

http://wiki.rubyonrails.com/rails/pages/Integrate+Rails+with+a+CMS

Does anyone have an idea?

Thanks in advance.

Sincerely,
Ryan Cheng

Comments

Bèr Kessels’s picture

Try sqlauth. It allows you to authenticate against any external application.

However, I think the easiest way, is to build your RoR modules from the Drupal tables:
user module from users table and get the log-in sessions from the drupal table too.

RoR is a a lot more flexible, because its you who chooses where. what and how stuff is stored. Drupal really needs its tables and database structures in a certain way. So I advice you to build your RoR app around Drupal, and not the other way around.

---
Professional | Personal
| Sympal: Development and Hosting