Discourse Integration with other Ruby Application

You want to investigate SSO (Single Sign-On). There’s a whole category for it on here.