# Two factor authentication?

**URL:** <https://forum.ghost.org/t/two-factor-authentication/11564>\
**Category:** Developer help\
**Created:** [January 23, 2020, 10:30pm UTC](https://forum.ghost.org/t/two-factor-authentication/11564 "2020-01-23T22:30:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![SydneyDev](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@SydneyDev](https://forum.ghost.org/u/SydneyDev)\
**Post date:** [January 23, 2020, 10:30pm UTC](https://forum.ghost.org/t/two-factor-authentication/11564/1 "2020-01-23T22:30:33Z")

</div>

Could I please ask people how they go about forcing **two factor authentication for users**?

I have found users tend to sharing logins otherwise.

Looking at Ghost for a project but wonder about this aspect?

Thank you

---

<div class="post-metadata">

**Author:** ![StuartMorrisAU](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/stuartmorrisau/32/26117_2.png) [@StuartMorrisAU](https://forum.ghost.org/u/StuartMorrisAU)\
**Post date:** [January 24, 2020, 1:28pm UTC](https://forum.ghost.org/t/two-factor-authentication/11564/2 "2020-01-24T13:28:21Z")

</div>

It’s not supported at the moment, nor is OAuth that would allow authentication through a third party that does support 2FA. It has been discussed before though.

> [@Multi-factor authentication](https://forum.ghost.org/t/multi-factor-authentication/548):
>
> Would be awesome to have some form of multi-factor authentication in front of the /ghost admin login. Lack of MFA + rate limiting makes it highly susceptible to brute force. Anyone know of any workarounds?

---

<div class="post-metadata">

**Author:** ![shodandad](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@shodandad](https://forum.ghost.org/u/shodandad)\
**Post date:** [May 6, 2021, 9:26pm UTC](https://forum.ghost.org/t/two-factor-authentication/11564/3 "2021-05-06T21:26:20Z")

</div>

How about now?

---

<div class="post-metadata">

**Author:** ![HachimanSec](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hachimansec/32/13009_2.png) [@HachimanSec](https://forum.ghost.org/u/HachimanSec)\
**Post date:** [May 10, 2021, 9:15am UTC](https://forum.ghost.org/t/two-factor-authentication/11564/4 "2021-05-10T09:15:35Z")

</div>

Just came across this post as I set up my first Ghost instance.

It is 2021 and MFA via TOTP would be really a great feature. And it is really an accepted and widely available standard these days.

#MFANow

---

<div class="post-metadata">

**Author:** ![sunknudsen](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sunknudsen/32/16536_2.png) [@sunknudsen](https://forum.ghost.org/u/sunknudsen)\
**Post date:** [January 25, 2022, 11:00pm UTC](https://forum.ghost.org/t/two-factor-authentication/11564/5 "2022-01-25T23:00:49Z")

</div>

Stumbled upon [Multi-factor authentication](https://forum.ghost.org/t/multi-factor-authentication/548) before reading this post.

I totally agree with @HachimanSec about TOTP being a great decentralized multi-factor authentication option that Ghost could implement.

---

<div class="post-metadata">

**Author:** ![Alexg](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/alexg/32/28102_2.png) [@Alexg](https://forum.ghost.org/u/Alexg)\
**Post date:** [January 26, 2022, 12:19am UTC](https://forum.ghost.org/t/two-factor-authentication/11564/6 "2022-01-26T00:19:49Z")

</div>

I’d just chuck Cloudflare Zero trust policies in front of it for now using their free teams access offering to get an email OTP to login.

> **[Access | Zero Trust Network Access](https://www.cloudflare.com/en-gb/teams/access/)**
>
> Secure your employee access with a faster and safer VPN alternative. Free for up to 50 users. See why KuppingerCole named us a Leader.

I wrote about doing this, this month - under the section: [Protect Ghost Admin Login with Cloudflare Teams](https://alexgallacher.com/how-to-configure-cloudflare-tunnels-for-a-secure-ghost-blog/)

---

<div class="post-metadata">

**Author:** ![rchase](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/rchase/32/6110_2.png) [@rchase](https://forum.ghost.org/u/rchase)\
**Post date:** [January 2, 2023, 6:39pm UTC](https://forum.ghost.org/t/two-factor-authentication/11564/7 "2023-01-02T18:39:46Z")

</div>

It’s 2023 please implement TOTP 2FA

---

<div class="post-metadata">

**Author:** ![javorszky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/javorszky/32/748_2.png) [@javorszky](https://forum.ghost.org/u/javorszky)\
**Post date:** [February 13, 2023, 2:01pm UTC](https://forum.ghost.org/t/two-factor-authentication/11564/8 "2023-02-13T14:01:44Z")

</div>

I would also like to throw my customer-ness behind the request to have 2fa implemented. Is that a ghost(pro) platform limitation, or an open-source Ghost missing functionality?

ie can we, the community implement it and ghostpro will use it, or do y’all need to take charge on it?

---

<div class="post-metadata">

**Author:** ![sharon\_s](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sharon_s/32/23260_2.png) [@sharon\_s](https://forum.ghost.org/u/sharon_s)\
**Post date:** [February 24, 2023, 9:58am UTC](https://forum.ghost.org/t/two-factor-authentication/11564/9 "2023-02-24T09:58:35Z")

</div>

My blog got hacked and deleted and there is nothing I can do about it.

I will never use ghost pro again. I moved to substack which has 2FA and free.

---

<div class="post-metadata">

**Author:** ![Itchy](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/itchy/32/23751_2.png) [@Itchy](https://forum.ghost.org/u/Itchy)\
**Post date:** [March 26, 2023, 8:32am UTC](https://forum.ghost.org/t/two-factor-authentication/11564/10 "2023-03-26T08:32:07Z")

</div>

They say that anyone is welcome to develop features and add them to the project, so do you want to help implement the open source [PrivacyIDEA](https://www.privacyidea.org/)? Here’s a link to their [API](https://www.privacyidea.org/documentation/api/). This is a guide for implementing [OTP](https://www.howtoforge.com/how-to-setup-otp-appliance-with-privacyidea)

Alternatively, there is [Ory](https://github.com/ory), “Ory is the largest open source community in the world for cloud software application security. We maintain advanced open source security software solving authentication, authorization, access control, application network security, and delegation. Ory implements a variety of industry and best-practice standards including OAuth 2.0 / OAuth 2.1, OpenID Connect, Zero Trust Networking, Google Zanzibar Policy Framework, FIDO2 U2F, WebAuthn, TOTP, and more.”

I’m busy setting up my website at the moment but I’ll be exploring these in the future. If you want to help me find what works and what doesn’t I would appreciate it. I’ll add these links to the [MFA request thread](https://forum.ghost.org/t/multi-factor-authentication/548/23) to see if anyone else wants to help. It seems like it’s in demand and necessary, as poor @sharon_s found out.

This was first asked for 5 years ago and I can’t find any documentation on the Git about it, so it looks like it’s up to us.

---

<div class="post-metadata">

**Author:** ![closebracket](https://avatars.discourse-cdn.com/v4/letter/c/bbce88/32.png) [@closebracket](https://forum.ghost.org/u/closebracket)\
**Post date:** [July 4, 2023, 9:37pm UTC](https://forum.ghost.org/t/two-factor-authentication/11564/11 "2023-07-04T21:37:28Z")

</div>

Hello,

I’ve signed up specifically to request 2FA/MFA. I had been trying to persuade friends to convert from Wordpress to Ghost but the lack of 2FA/MFA was a huge issue, and I can understand it. Many people process financial and other sensitive data on sites now and are legally held responsible for leaks/breaches. Not being able to protect with 2FA/MFA is a very 15+ year old issue. In some ways, it reminds me of my teen years hanging around coffee shops sniffing passwords because everything was sent unencrypted. This had been a feature request for many years, why hasn’t anyone picked it up?

I note that @Itchy has offered to do some dev towards it, and I’d be willing to help as well (15+ sysadmin/dev experience), but it would be good to see some effort towards enhancing security of the platform from the Ghost team. I really like the suggestion of FIDO2, being able to login with my Solokey would be beautiful.

Cb

---

<div class="post-metadata">

**Author:** ![Coolcmsc](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/coolcmsc/32/24173_2.png) [@Coolcmsc](https://forum.ghost.org/u/Coolcmsc)\
**Post date:** [July 4, 2023, 10:42pm UTC](https://forum.ghost.org/t/two-factor-authentication/11564/12 "2023-07-04T22:42:16Z")

</div>

Just to add, I hope all visitors who think MFA would be good for Ghost have already headed over to the Ideas post on this ([already referenced above](https://forum.ghost.org/t/multi-factor-authentication/548/23)).

Having said that, if using Ghost Pro, access is needed to the email account that’s linked to the login credentials that are being allegedly “shared”, so those credentials would also have to be shared.

---

<div class="post-metadata">

**Author:** ![sheldrake](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sheldrake/32/18522_2.png) [@sheldrake](https://forum.ghost.org/u/sheldrake)\
**Post date:** [September 27, 2023, 9:12am UTC](https://forum.ghost.org/t/two-factor-authentication/11564/13 "2023-09-27T09:12:05Z")

</div>

Does Ghost still not have multi-factor / two-factor authentication? It’s now about the only resource I care about that just sits entirely behind a password. Not cool.

I wonder why such a highly-standardised and easy-to-implement feature remains undone here. 🤔

---

<div class="post-metadata">

**Author:** ![markstos](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/markstos/32/18182_2.png) [@markstos](https://forum.ghost.org/u/markstos)\
**Post date:** [September 27, 2023, 2:09pm UTC](https://forum.ghost.org/t/two-factor-authentication/11564/14 "2023-09-27T14:09:54Z")

</div>

There was some progress here. The code base contains a “SSO adapter” for staff logins:

> <https://github.com/TryGhost/Ghost/tree/main/ghost/core/core/server/adapters/sso>
>
> //github.com/TryGhost/Ghost/tree/main/ghost/core/core/server/adapters/sso

Someone started on adapter which would allow Ghost to use Passport SSO strategies:

> **[ghost-passport-sso](https://www.npmjs.com/package/ghost-passport-sso)**
>
> A Single Sign-On (SSO) adapter for Ghost blog. Latest version: 0.0.1, last published: 3 years ago. Start using ghost-passport-sso in your project by running \`npm i ghost-passport-sso\`. There are no other projects in the npm registry using...

In turn, Passport supports logins via Google, SAML, TOTP, etc.

[https://www.passportjs.org/packages/](https://www.passportjs.org/packages/)

Several of those strategies support a two-factor option as part of SSO.

---

<div class="post-metadata">

**Author:** ![sheldrake](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sheldrake/32/18522_2.png) [@sheldrake](https://forum.ghost.org/u/sheldrake)\
**Post date:** [September 30, 2023, 1:04pm UTC](https://forum.ghost.org/t/two-factor-authentication/11564/15 "2023-09-30T13:04:36Z")

</div>

Thanks @markstos. This looks like waaaay more effort than I can muster for my own website.

I guess I just won’t recommend Ghost to anyone until such a simple feature is available. ☹

---

<div class="post-metadata">

**Author:** ![Danicus](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@Danicus](https://forum.ghost.org/u/Danicus)\
**Post date:** [March 31, 2024, 12:03am UTC](https://forum.ghost.org/t/two-factor-authentication/11564/16 "2024-03-31T00:03:17Z")

</div>

I’m going to boldly resurrect this thread because this is so critical – Ghost Pro users don’t really have the option of custom infrastructure to mitigate this.

What would it take to get this prioritized? What kind of contribution would be required from the community, if it cannot be prioritized?

---

<div class="post-metadata">

**Author:** ![markstos](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/markstos/32/18182_2.png) [@markstos](https://forum.ghost.org/u/markstos)\
**Post date:** [April 10, 2024, 12:42am UTC](https://forum.ghost.org/t/two-factor-authentication/11564/17 "2024-04-10T00:42:56Z")

</div>

The option I would recommend for MFA today would be passkeys for admins.

I doubt the Ghost team would object to someone contributing the feature.

Someone needs to hire a dev to get it done, or perhaps it could be crowdfunded.

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [April 10, 2024, 1:31am UTC](https://forum.ghost.org/t/two-factor-authentication/11564/18 "2024-04-10T01:31:50Z")

</div>

This is something I’ve been working on on-and-off. I wrote [simple-mfa](https://github.com/vikaspotluri123/simple-mfa/) to abstract the MFA part out of Ghost, and I plan to add passkey support this month. I have a branch that integrates Ghost and simple-mfa, but the UI was based on the Ember Admin Settings, which no longer exists. Funding would definitely put this higher on my priorities.

---

<div class="post-metadata">

**Author:** ![superxingzheng](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@superxingzheng](https://forum.ghost.org/u/superxingzheng)\
**Post date:** [April 17, 2024, 1:52pm UTC](https://forum.ghost.org/t/two-factor-authentication/11564/19 "2024-04-17T13:52:39Z")

</div>

We ware looking for MFA support for Ghost too.

---

<div class="post-metadata">

**Author:** ![markstos](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/markstos/32/18182_2.png) [@markstos](https://forum.ghost.org/u/markstos)\
**Post date:** [April 22, 2024, 3:47pm UTC](https://forum.ghost.org/t/two-factor-authentication/11564/20 "2024-04-22T15:47:42Z")

</div>

If you want MFA for Ghost today, I recommend Social Sign On For Ghost, by @Cathy_Sarisky [Single sign-on for Ghost](https://www.spectralwebservices.com/blog/social-sign-on-for-ghost/)

For $5/Month, you can sign-in with Google, and your Google Login can be protected by Google’s excellent MFA support.

[Next page](https://forum.ghost.org/t/two-factor-authentication/11564.md?page=2)
