# SSO and Discourse Consulting

**URL:** https://meta.discourse.org/t/sso-and-discourse-consulting/62980
**Category:** Marketplace
**Created:** [May 18, 2017, 10:28pm UTC](https://meta.discourse.org/t/sso-and-discourse-consulting/62980 "2017-05-18T22:28:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Hidetaka\_Ko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hidetaka_ko/32/72324_2.png) [@Hidetaka\_Ko](https://meta.discourse.org/u/Hidetaka_Ko)
#### Post date: [May 18, 2017, 10:28pm UTC](https://meta.discourse.org/t/sso-and-discourse-consulting/62980/1 "2017-05-18T22:28:16Z")

</div>

・What would you like done?

I have an existing rails app that is using session controller as it’s user authentication.  
[https://www.diverseas.com/](https://www.diverseas.com/)

I added a discourse forum and everything went smoothly and it resides on a subdomain.  
[https://forum.diverseas.com/](https://forum.diverseas.com/)

I have read the post at [Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/official-single-sign-on-for-discourse/13045)  
but still don’t know what to do with the session controller once the user logs in on the existing rails site.

Currently this is the process as I understand it:

Step1: User hits Discourse forum on subdomain. User needs to login so clicks login button.

Step2: User is sent to the login page on the existing rails site.

Step3: User logs in on rails site.

Step4: User should be redirected to discourse forum subdomain logged in. My question is - What do I need to to do to make it so that when a user logs in for these steps?

I can show you my code or invite you to our repo if you want.

・When do you need it done?  
Flexible

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [June 17, 2017, 10:28pm UTC](https://meta.discourse.org/t/sso-and-discourse-consulting/62980/2 "2017-06-17T22:28:35Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
