# تنفيذ SSO لبيئة التطوير واستكشاف الأخطاء

**URL:** https://meta.discourse.org/t/implementing-sso-for-dev-environment-and-troubleshoot/108150
**Category:** SSO
**Created:** [1 فبراير 2019، 7:41م UTC](https://meta.discourse.org/t/implementing-sso-for-dev-environment-and-troubleshoot/108150 "2019-02-01T19:41:52Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![James\_Park](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/james_park/32/129693_2.png) [@James\_Park](https://meta.discourse.org/u/James_Park)
#### Post date: [1 فبراير 2019، 7:41م UTC](https://meta.discourse.org/t/implementing-sso-for-dev-environment-and-troubleshoot/108150/1 "2019-02-01T19:41:52Z")

</div>

Hey all,

So I am currently tasked with figuring out how to implement SSO for my company and they wanted me to learn how to set it up in the dev environment before we go forward with integrating Discourse.

I am using a Node back end server running in my localhost port and set up a test route. Discourse is running on my WSL environment on a different localhost port.

Couple of questions since my google-fu doesn’t seem to be getting any results.

1. How should I go about setting it up while following the official guide
2. I set enable\_sso to true but my initial route failed and now I cannot access my admin panel to change it. Obviously sending an email doesn’t work for me so I attempted to reset it in my WSL environment but can’t seem to find a launcher file. How can I fix this?

Thanks!

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [1 فبراير 2019، 8:05م UTC](https://meta.discourse.org/t/implementing-sso-for-dev-environment-and-troubleshoot/108150/2 "2019-02-01T20:05:59Z")

</div>

> [@James\_Park](#):
>
> I set enable\_sso to true but my initial route failed and now I cannot access my admin panel to change it

If you have access to the rails console, enter it and then run:

```plaintext
SiteSetting.enable_sso = false

```

---

<div class="post-metadata">

### Author: ![James\_Park](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/james_park/32/129693_2.png) [@James\_Park](https://meta.discourse.org/u/James_Park)
#### Post date: [1 فبراير 2019، 9:49م UTC](https://meta.discourse.org/t/implementing-sso-for-dev-environment-and-troubleshoot/108150/3 "2019-02-01T21:49:16Z")

</div>

Which file do I access to run that command?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [1 فبراير 2019، 9:54م UTC](https://meta.discourse.org/t/implementing-sso-for-dev-environment-and-troubleshoot/108150/4 "2019-02-01T21:54:29Z")

</div>

Is your dev enviroment running on your local computer? If so, how did you set it up? If you are using a non-docker install, all you need to do is go to the `/discourse` directory in your terminal and enter  
`rails c`  
to access the console prompt.

---

<div class="post-metadata">

### Author: ![James\_Park](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/james_park/32/129693_2.png) [@James\_Park](https://meta.discourse.org/u/James_Park)
#### Post date: [1 فبراير 2019، 10:28م UTC](https://meta.discourse.org/t/implementing-sso-for-dev-environment-and-troubleshoot/108150/5 "2019-02-01T22:28:11Z")

</div>

Thank you! When I was trying the rails command I thought it was returning an error. Was able to set it off.

Is there any documentation of setting up SSO in a dev environment?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [4 فبراير 2019، 12:36ص UTC](https://meta.discourse.org/t/implementing-sso-for-dev-environment-and-troubleshoot/108150/6 "2019-02-04T00:36:56Z")

</div>

Nothing specific for dev, just be sure to read through

> [@Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/official-single-sign-on-for-discourse-sso/13045):
>
> [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) is a core Discourse feature that allows you to configure “Single Sign-On (SSO)” to completely outsource all user registration and login from Discourse to another site. Offered to our [pro, business and enterprise hosting customers](https://discourse.org/pricing). information_source (Feb 2021) ‘[Discourse SSO](https://meta.discourse.org/t/13045?silent=true)’ is now ‘[DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)’. If you are running an old version of Discourse, the settings below will be named sso\_... rather than discourse\_connect\_... The Problem Many sites wishing to integrate wit…
