title: Rails: Devise Authentication from an ActiveResource call
body: <p>My two rails applications(app1, app2) are communicating using active resource.</p>
  
  <p>app1 calls app2 create a user inside app2. app2 would create the user and would like app1 then redirect the user to app2's authenticated pages.</p>
  
  <p>going from app1 to app2 would invariably ask the user to log in.</p>
  
  <p>I was looking for a way to avoid this login step in app2, instead make the user log in during the first active resource call to create user, and somehow get the authentication token written.</p>
  
  <p>Authentication is done using Devise. Is there anything built into Devise that support this?</p>
  
  <p>Is passing around the authentication token the way to go?</p>