Hi Members
We are trying to share authentication information between a wordpress site and a rails app. Here's what we are trying to do:
1. Application "X" is on wordpress hosted on
example.com
2. Application "Y" is built in RoR (ruby 2, rails 4) hosted on
form.example.com. It uses 'devise' for managing authentication.
3. On Application "X", we need to show a login form (email,
password, submit button) in a corner of the page. The form is loaded
from Application "Y" and submitted back to it.
5. If login is
successful, username is fetched from 'Y" and shown on "X". If login is
unsuccessful, error message shown on "X". All this should happen without
leaving
example.com
6. If the user closes the window and comes back to this page later
on, the session should be read from "Y" and current login status should
be shown.
Any pointers on solving this is greatly appreciated.