Doorkeeper single sign on

How do I signin to another application automatically if I am signed in into one application using doorkeeper?

We recently implemented SSO based on Doorkeeper & Omniauth, and the basic idea is:

  • Set a global cookie shared across sub-domains that indicates login status
  • When entering another app, initiate OAuth process as cookie presented
  • When user logout from one of the apps, delete that cookie
  • Then when entering another app, sign out the user as cookie not presented

There’s a nice article regarding this written by guys at Heroku:

Cool thanks :smile: