# SSO locked me out of Discourse!

**URL:** <https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856>\
**Category:** SSO\
**Created:** [2015年一月10日 16:57 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856 "2015-01-10T16:57:06Z")\
**Posts on this page:** 16\
**Page:** 2

<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:** [2015年三月17日 06:07 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/21 "2015-03-17T06:07:19Z")

</div>

> [@Rafiki](#):
>
> Any advice appreciate as need to get the SSO turned off asap. Thanks!

Sorry, we are totally stretched for resources here, the only install method we support is the official docker based install

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2015年三月17日 06:40 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/22 "2015-03-17T06:40:39Z")

</div>

Yeah, the `rails c` we’re looking for is this:

```plaintext
  - file:
     path: /usr/local/bin/rails
     chmod: +x
     contents: |
       #!/bin/bash
       # If they requested a console, load pry instead
       if ["$@" == "c" -o "$@" == "console"]
       then
        (cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle exec pry -r ./config/environment)
       else
        (cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle exec script/rails "$@")
       fi

```

@zogstrip bug - whitespace is being trimmed from the start of a fenced code block

---

<div class="post-metadata">

**Author:** ![Rafiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rafiki/32/37915_2.png) [@Rafiki](https://meta.discourse.org/u/Rafiki)\
**Post date:** [2015年三月17日 09:09 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/23 "2015-03-17T09:09:42Z")

</div>

@sam Totally understand; should of avoided going for an easy install. Thanks for replying.

---

<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:** [2015年三月17日 09:11 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/24 "2015-03-17T09:11:08Z")

</div>

the docker install really is the “easy” install imo, it takes us less than 15 minutes including all the waiting.

---

<div class="post-metadata">

**Author:** ![Rafiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rafiki/32/37915_2.png) [@Rafiki](https://meta.discourse.org/u/Rafiki)\
**Post date:** [2015年三月17日 09:32 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/25 "2015-03-17T09:32:02Z")

</div>

@sam - thanks. Will definitely have a look. Out of interest where would you choose to host it? I am currently trailing Amazon, but new to the whole environment and don’t want to make another mistake with the project due to time constraints. Thanks.

---

<div class="post-metadata">

**Author:** ![Moter8](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moter8/32/120941_2.png) [@Moter8](https://meta.discourse.org/u/Moter8)\
**Post date:** [2015年三月17日 14:55 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/26 "2015-03-17T14:55:04Z")

</div>

> [@Rafiki](#):
>
> Out of interest where would you choose to host it?

AWS, Digitalocean, Linode… there definitely are some good providers out there.

---

<div class="post-metadata">

**Author:** ![kpfleming](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kpfleming/32/116414_2.png) [@kpfleming](https://meta.discourse.org/u/kpfleming)\
**Post date:** [2015年三月17日 15:17 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/27 "2015-03-17T15:17:18Z")

</div>

S3 is not a VM hosting service, it’s a storage service. I think you meant to say Amazon EC2.

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2015年三月17日 16:27 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/28 "2015-03-17T16:27:45Z")

</div>

> [@riking](#):
>
> @zogstrip bug - whitespace is being trimmed from the start of a fenced code block

Thanks for reporting that. I just pushed a fix 🐃

[https://github.com/discourse/discourse/commit/aa41a9ce700a1a39d13c189d0f769694bce603aa](https://github.com/discourse/discourse/commit/aa41a9ce700a1a39d13c189d0f769694bce603aa)

---

<div class="post-metadata">

**Author:** ![Rafiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rafiki/32/37915_2.png) [@Rafiki](https://meta.discourse.org/u/Rafiki)\
**Post date:** [2015年三月18日 05:42 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/29 "2015-03-18T05:42:44Z")

</div>

@Moter8 - thanks for ideas; will check them out.

---

<div class="post-metadata">

**Author:** ![walt](https://avatars.discourse-cdn.com/v4/letter/w/71e660/32.png) [@walt](https://meta.discourse.org/u/walt)\
**Post date:** [2015年三月21日 06:36 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/30 "2015-03-21T06:36:28Z")

</div>

Here’s what I’m getting back from Terminal (also a newb developer who got locked out b/c of sso plugin w/ WP.

```
# cd /var/discourse
# ./launcher enter app
# $ rails c
$: command not found
# [1] pry(main)> SiteSetting.enable_sso = false
-bash: syntax error near unexpected token `('
# [2] pry(main)> exit
-bash: syntax error near unexpected token `('
# $ exit

```

Any help here would be greatly appreciated. Thanks!

---

<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:** [2015年三月21日 07:09 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/31 "2015-03-21T07:09:13Z")

</div>

> [@walt](#):
>
> $ rails c

the command is `rails c` not `$ rails c`

---

<div class="post-metadata">

**Author:** ![thangngoc89](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thangngoc89/32/115436_2.png) [@thangngoc89](https://meta.discourse.org/u/thangngoc89)\
**Post date:** [2015年三月21日 07:11 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/32 "2015-03-21T07:11:15Z")

</div>

> [@walt](#):
>
> $ rails c

It should be `rails c`

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2015年三月21日 17:05 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/33 "2015-03-21T17:05:44Z")

</div>

Also, the `[1] pry(main)> ` is also a prompt, not a command.

---

<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:** [2018年九月19日 19:51 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/34 "2018-09-19T19:51:19Z")

</div>



---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2018年九月19日 20:08 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/35 "2018-09-19T20:08:53Z")

</div>

The way to deal with this these days is `/u/admin-login`. That’ll send you a link that you can use to log in and fuss with SSO settings from the web interface.

---

<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:** [2018年九月19日 21:05 UTC](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856/36 "2018-09-19T21:05:43Z")

</div>



[上一頁](https://meta.discourse.org/t/sso-locked-me-out-of-discourse/23856.md?page=1)
