# Is there a per-instance way to keep social logins with 2FA?

**URL:** <https://meta.discourse.org/t/is-there-a-per-instance-way-to-keep-social-logins-with-2fa/417603>\
**Category:** Product Support\
**Tags:** 2fa\
**Created:** [17 בנובמבר,‏ 2026,‏ 12:19am UTC](https://meta.discourse.org/t/is-there-a-per-instance-way-to-keep-social-logins-with-2fa/417603 "2026-11-17T00:19:11Z")\
**Posts on this page:** 2\
**Page:** 1

## סיכום מבוסס בינה מלאכותית

The discussion addresses whether social logins can be used with two-factor authentication (2FA) enabled in Discourse. [roke_julian_lockhart](/t/-/417603/1) references a previous statement by codinghorror noting that enabling 2FA typically disables social logins, and asks if this behavior can be adjusted on a per-instance basis. [awesomerobot](/t/-/417603/2) confirms that this is possible by adjusting the `Enforce second factor on external auth` site setting. When this setting is disabled, users can log in using social providers (such as Google or GitHub) without 2FA, while 2FA remains enforced for local account logins.

<div class="post-metadata">

**Author:** ![roke\_julian\_lockhart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roke_julian_lockhart/32/540179_2.png) [@roke\_julian\_lockhart](https://meta.discourse.org/u/roke_julian_lockhart)\
**Post date:** [17 בנובמבר,‏ 2026,‏ 12:19am UTC](https://meta.discourse.org/t/is-there-a-per-instance-way-to-keep-social-logins-with-2fa/417603/1 "2026-11-17T00:19:11Z")

</div>

> [@Discourse hacked via sophisticated social engineering](https://meta.discourse.org/t/discourse-hacked-via-sophisticated-social-engineering/87905/2):
>
> - Enabling 2FA (two factor auth) in Discourse logins automatically disables all social logins.
> 
> - It is definitely possible to have 2FA login enabled through Google, Github, and other social logins, but I’m not aware of any way Discourse could enforce that, or know about it.

Can this be allowed at a per-instance level?

---

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [17 בנובמבר,‏ 2026,‏ 2:06am UTC](https://meta.discourse.org/t/is-there-a-per-instance-way-to-keep-social-logins-with-2fa/417603/2 "2026-11-17T02:06:11Z")

</div>

There’s a site setting called `Enforce second factor on external auth` — when it’s disabled you can log in using a social provider without two factor auth while still having 2FA enabled for local logins
