# How to login to Discourse by overriding SSO?

**URL:** <https://meta.discourse.org/t/how-to-login-to-discourse-by-overriding-sso/268437>\
**Category:** SSO\
**Tags:** openid-connect\
**Created:** [May 27, 2022, 1:58pm UTC](https://meta.discourse.org/t/how-to-login-to-discourse-by-overriding-sso/268437 "2022-05-27T13:58:14Z")\
**Posts on this page:** 3\
**Page:** 1

## AI-generated summary

In a discussion about overriding SSO to log in to a Discourse forum after a domain change, [chrisc](/t/-/268437/1) explains that the site's SSO is broken due to the new domain, preventing regular logins. They ask if the Rails console can be used to deactivate the plugin to regain access. [JammyDodger](/t/-/268437/2) suggests an alternative solution, noting that the `[YourSite]/admin-login/` link can bypass SSO authentication.

<div class="post-metadata">

**Author:** ![chrisc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisc/32/119982_2.png) [@chrisc](https://meta.discourse.org/u/chrisc)\
**Post date:** [May 27, 2022, 1:58pm UTC](https://meta.discourse.org/t/how-to-login-to-discourse-by-overriding-sso/268437/1 "2022-05-27T13:58:14Z")

</div>

Hi, I’ve a Discourse forum that was configured to use this plugin, but we have since needed to change the domain name used for the Discourse site and SSO is currently not working as a result, however we can’t use a Discourse regular login to access the site – is there a way we could use the rails console to deactivate the plugin so we can login to Discourse not using SSO and then get everything working again?

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [May 27, 2022, 2:03pm UTC](https://meta.discourse.org/t/how-to-login-to-discourse-by-overriding-sso/268437/2 "2022-05-27T14:03:08Z")

</div>

I think the `[YourSite]u/admin-login/` link can bypass SSO. 👍

---

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [June 15, 2023, 11:42am UTC](https://meta.discourse.org/t/how-to-login-to-discourse-by-overriding-sso/268437/3 "2023-06-15T11:42:15Z")

</div>

Closed on June 15, 2023, 11:42am UTC


