# 如何在运行中的网站上测试 SSO

**URL:** <https://meta.discourse.org/t/how-to-test-sso-on-a-running-site/117393>\
**Category:** SSO\
**Created:** [2019年五月10日 13:42 UTC](https://meta.discourse.org/t/how-to-test-sso-on-a-running-site/117393 "2019-05-10T13:42:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Lehmann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/john_lehmann/32/140084_2.png) [@John\_Lehmann](https://meta.discourse.org/u/John_Lehmann)\
**Post date:** [2019年五月10日 13:42 UTC](https://meta.discourse.org/t/how-to-test-sso-on-a-running-site/117393/1 "2019-05-10T13:42:53Z")

</div>

I have an operating forum and now I want to switch to SSO. However, how can I test SSO on my site while developing it without flipping the `enable_sso` flag which will break everything until I get it Just Right?

This is probably a dumb question because I can’t find anyone asking this.

---

<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:** [2019年五月10日 13:48 UTC](https://meta.discourse.org/t/how-to-test-sso-on-a-running-site/117393/2 "2019-05-10T13:48:18Z")

</div>

You could set up a staging site and then switch the domain name when you make the final switch.

---

<div class="post-metadata">

**Author:** ![John\_Lehmann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/john_lehmann/32/140084_2.png) [@John\_Lehmann](https://meta.discourse.org/u/John_Lehmann)\
**Post date:** [2019年五月10日 13:49 UTC](https://meta.discourse.org/t/how-to-test-sso-on-a-running-site/117393/3 "2019-05-10T13:49:23Z")

</div>

Got it, spin up a whole other discourse site? I wanted to make sure there wasn’t an easier approach. (Though you guys make it easy). Thanks!

---

<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:** [2019年五月10日 13:54 UTC](https://meta.discourse.org/t/how-to-test-sso-on-a-running-site/117393/4 "2019-05-10T13:54:36Z")

</div>

I think that most people live on the edge and do it in the live site. It’s not that hard to keep a window open where you can turn off and on the SSO for quick tests.

It just depends on how paranoid or concerned about confusing users you are (or how unhappy users will be if stuff is broken for a few minutes).

---

<div class="post-metadata">

**Author:** ![John\_Lehmann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/john_lehmann/32/140084_2.png) [@John\_Lehmann](https://meta.discourse.org/u/John_Lehmann)\
**Post date:** [2019年五月13日 11:50 UTC](https://meta.discourse.org/t/how-to-test-sso-on-a-running-site/117393/5 "2019-05-13T11:50:25Z")

</div>

Liked “live on the edge”.

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/7/e71a702c5995300a5349d6ed10bcd4b74902c6ce.jpeg)
