# Disabling SSO in development environment

**URL:** https://meta.discourse.org/t/disabling-sso-in-development-environment/121055
**Category:** Development
**Created:** [22.Июнь.2019 06:45:05 UTC](https://meta.discourse.org/t/disabling-sso-in-development-environment/121055 "2019-06-22T06:45:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![thsnyzkn](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@thsnyzkn](https://meta.discourse.org/u/thsnyzkn)
#### Post date: [22.Июнь.2019 06:45:05 UTC](https://meta.discourse.org/t/disabling-sso-in-development-environment/121055/1 "2019-06-22T06:45:05Z")

</div>

Hello,

I have installed discourse on macOS, following through this([Install Discourse on macOS for development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-macos-for-development/15772)) guide, and it’s worked perfectly fine.

However, I changed some settings to enable\_sso and now I can’t login to Discourse with my Admin account. I tried to install discourse from scratch, but I think database records still exist, and I end up with the same problem.

What I am trying to ask here, how can I have really a clean reinstall of Discourse on my macOS.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [22.Июнь.2019 14:15:17 UTC](https://meta.discourse.org/t/disabling-sso-in-development-environment/121055/2 "2019-06-22T14:15:17Z")

</div>

Our SSO guide has a section on this:

> [@Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/setup-discourseconnect-official-single-sign-on-for-discourse-sso/13045/1):
>
> ### What if you check it by mistake?
> 
> If you check `enable_sso` by mistake and need to revert to the original state and no longer have access to the admin panel, visit `/users/admin-login` and follow the instructions.
> 
> OR, from server console run:
> 
> ```plaintext
> cd /var/discourse
> ./launcher enter app
> rails c
> irb > SiteSetting.enable_sso = false
> irb > SiteSetting.enable_local_logins = true
> irb > exit
> exit
> 
> ```

---

<div class="post-metadata">

### Author: ![thsnyzkn](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@thsnyzkn](https://meta.discourse.org/u/thsnyzkn)
#### Post date: [22.Июнь.2019 14:55:29 UTC](https://meta.discourse.org/t/disabling-sso-in-development-environment/121055/3 "2019-06-22T14:55:29Z")

</div>

Yes, I was aware of the guide and instructions over there, even I tried those steps, it doesn’t seem that those commands took effect. Anyways, I change site\_settings.yml file’s enable\_sso component’s value to false and relaunch the server, but this time I am getting an “Unknown error” while I am trying to login with an admin account.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [22.Июнь.2019 15:11:25 UTC](https://meta.discourse.org/t/disabling-sso-in-development-environment/121055/4 "2019-06-22T15:11:25Z")

</div>

```plaintext
rails c
SiteSetting.enable_sso = false
SiteSetting.enable_local_logins = true
exit

```

Will 100% disable sso. Maybe you have another unrelated problem?

---

<div class="post-metadata">

### Author: ![thsnyzkn](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@thsnyzkn](https://meta.discourse.org/u/thsnyzkn)
#### Post date: [24.Июнь.2019 12:17:19 UTC](https://meta.discourse.org/t/disabling-sso-in-development-environment/121055/5 "2019-06-24T12:17:19Z")

</div>

I tried this, but still I am getting the same problem.. Might it be related with the force\_https options. Every time, I want to test my sso url, I need to setup Discourse locally from scratch, it is really frustrating and tiring. 😥
