ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Adding 2FA to BookStack Wiki

    IT Discussion
    mfa 2fa bookstack wiki
    6
    21
    2.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403D
      DustinB3403
      last edited by

      As some guidance (and I posted this on the FR above) Snipe-IT already has 2FA built in, and is built on Laravel and PHP as well. So taking the code and making it work with Bookstack is likely a relatively small ask for anyone with the programming chops.

      1 Reply Last reply Reply Quote 0
      • black3dynamiteB
        black3dynamite
        last edited by

        What about adding 2-Factor Authentication to Bookstack using Nginx

        https://seantodd.co.uk/blog/putting-2fa-on-everything/

        scottalanmillerS 1 Reply Last reply Reply Quote 1
        • scottalanmillerS
          scottalanmiller @black3dynamite
          last edited by

          @black3dynamite said in Adding 2FA to BookStack Wiki:

          What about adding 2-Factor Authentication to Bookstack using Nginx

          https://seantodd.co.uk/blog/putting-2fa-on-everything/

          I'm going to give that a try.

          1 Reply Last reply Reply Quote 0
          • 1
            1337
            last edited by 1337

            My opinion is that the best way is to put a reverse proxy in front and authenticate on that using SSO (SAML or OpenID) to an identity provider. And then have the identity provider do the 2FA.

            Apache has the most advanced options for this but others have it too.. Identity provider can be whatever is suitable. Key is using SSO and not "homebuilt" 2FA. And the proxy server will have nothing to do with passwords or managing users. That's taken care of by the identity provider, which have all the tools already in place for this.

            1 Reply Last reply Reply Quote 1
            • F
              flaxking
              last edited by

              Am I missing something? What's wrong with the third party auth and SAML supported by Bookstack?

              1 1 Reply Last reply Reply Quote 1
              • 1
                1337 @flaxking
                last edited by 1337

                @flaxking said in Adding 2FA to BookStack Wiki:

                Am I missing something? What's wrong with the third party auth and SAML supported by Bookstack?

                If Bookstack already supports SAML, that would be the most logical choice with the least amount of work.


                I don't know which identity provider to pick though - if you are not already committed to something.

                For instance, if you are a M365 user do you already have access to SAML authentication through Microsoft or do you need to add Azure AD to get that?
                Then you have Google, AWS and more.

                Then you have the specialized identity providers such as okta, onelogin, jumpcloud etc.

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  @flaxking said in Adding 2FA to BookStack Wiki:

                  What's wrong with the third party auth and SAML supported by Bookstack?

                  I suggested that we look at SAML providers for this. That sounds like a good idea.

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @1337
                    last edited by

                    @Pete-S said in Adding 2FA to BookStack Wiki:

                    I don't know which identity provider to pick though - if you are not already committed to something.

                    We don't have one yet in this instance.

                    1 1 Reply Last reply Reply Quote 0
                    • 1
                      1337 @scottalanmiller
                      last edited by 1337

                      @scottalanmiller said in Adding 2FA to BookStack Wiki:

                      @Pete-S said in Adding 2FA to BookStack Wiki:

                      I don't know which identity provider to pick though - if you are not already committed to something.

                      We don't have one yet in this instance.

                      Might not make sense in this case but we're actually looking to use Zoho as an identity provider for SAML. So you'd sign in to Bookstack or other app using your Zoho login.

                      I don't know what other options Zoho have but it looks like Zoho can act as a SAML identity provider if you have Zoho One or Zoho Vault Enterprise.

                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller @1337
                        last edited by

                        @Pete-S said in Adding 2FA to BookStack Wiki:

                        I don't know what other options Zoho have but it looks like Zoho can act as a SAML identity provider if you have Zoho One or Zoho Vault Enterprise.

                        That's what I'd like, but we don't have either of those and neither does the client in question.

                        1 1 Reply Last reply Reply Quote 0
                        • 1
                          1337 @scottalanmiller
                          last edited by 1337

                          @scottalanmiller said in Adding 2FA to BookStack Wiki:

                          @Pete-S said in Adding 2FA to BookStack Wiki:

                          I don't know what other options Zoho have but it looks like Zoho can act as a SAML identity provider if you have Zoho One or Zoho Vault Enterprise.

                          That's what I'd like, but we don't have either of those and neither does the client in question.

                          IDaaS providers such as onelogin are not ultra cheap. I think SSO+MFA is going to be $4/user/month.

                          But then you have support for SAML and OpenID Connect for unlimited apps as well as hardware tokens, OTP, APIs and the works.

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @1337
                            last edited by

                            @Pete-S said in Adding 2FA to BookStack Wiki:

                            @scottalanmiller said in Adding 2FA to BookStack Wiki:

                            @Pete-S said in Adding 2FA to BookStack Wiki:

                            I don't know what other options Zoho have but it looks like Zoho can act as a SAML identity provider if you have Zoho One or Zoho Vault Enterprise.

                            That's what I'd like, but we don't have either of those and neither does the client in question.

                            IDaaS providers such as onelogin are not ultra cheap. I think SSO+MFA is going to be $4/user/month.

                            But then you have support for SAML and OpenID Connect for unlimited apps as well as hardware tokens, OTP, APIs and the works.

                            Yeah, that might defeat the overall purpose. That adds up really quickly when it's just for a wiki.

                            1 1 Reply Last reply Reply Quote 0
                            • 1
                              1337 @scottalanmiller
                              last edited by

                              @scottalanmiller said in Adding 2FA to BookStack Wiki:

                              @Pete-S said in Adding 2FA to BookStack Wiki:

                              @scottalanmiller said in Adding 2FA to BookStack Wiki:

                              @Pete-S said in Adding 2FA to BookStack Wiki:

                              I don't know what other options Zoho have but it looks like Zoho can act as a SAML identity provider if you have Zoho One or Zoho Vault Enterprise.

                              That's what I'd like, but we don't have either of those and neither does the client in question.

                              IDaaS providers such as onelogin are not ultra cheap. I think SSO+MFA is going to be $4/user/month.

                              But then you have support for SAML and OpenID Connect for unlimited apps as well as hardware tokens, OTP, APIs and the works.

                              Yeah, that might defeat the overall purpose. That adds up really quickly when it's just for a wiki.

                              True, but don't they use mail or any other service?

                              scottalanmillerS 1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @1337
                                last edited by

                                @Pete-S said in Adding 2FA to BookStack Wiki:

                                @scottalanmiller said in Adding 2FA to BookStack Wiki:

                                @Pete-S said in Adding 2FA to BookStack Wiki:

                                @scottalanmiller said in Adding 2FA to BookStack Wiki:

                                @Pete-S said in Adding 2FA to BookStack Wiki:

                                I don't know what other options Zoho have but it looks like Zoho can act as a SAML identity provider if you have Zoho One or Zoho Vault Enterprise.

                                That's what I'd like, but we don't have either of those and neither does the client in question.

                                IDaaS providers such as onelogin are not ultra cheap. I think SSO+MFA is going to be $4/user/month.

                                But then you have support for SAML and OpenID Connect for unlimited apps as well as hardware tokens, OTP, APIs and the works.

                                Yeah, that might defeat the overall purpose. That adds up really quickly when it's just for a wiki.

                                True, but don't they use mail or any other service?

                                Sure, but that doesn't offset the Vault cost. So still looking at $6/u/mo just for wiki sign in!

                                1 1 Reply Last reply Reply Quote 0
                                • pmonchoP
                                  pmoncho
                                  last edited by

                                  I don't know what all is required but is it possible to use the google-authenticator-libpam module with modifications to the /etc/pam.d/nginx file.

                                  I was thinking, if Ubuntu GUI can use it, nginx can use pam modules, is it possible to mesh it with bookstack???

                                  This could be totally irrelevant as I am just throwing some crap ideas out there.

                                  1 Reply Last reply Reply Quote 0
                                  • 1
                                    1337 @scottalanmiller
                                    last edited by

                                    @scottalanmiller said in Adding 2FA to BookStack Wiki:

                                    @Pete-S said in Adding 2FA to BookStack Wiki:

                                    @scottalanmiller said in Adding 2FA to BookStack Wiki:

                                    @Pete-S said in Adding 2FA to BookStack Wiki:

                                    @scottalanmiller said in Adding 2FA to BookStack Wiki:

                                    @Pete-S said in Adding 2FA to BookStack Wiki:

                                    I don't know what other options Zoho have but it looks like Zoho can act as a SAML identity provider if you have Zoho One or Zoho Vault Enterprise.

                                    That's what I'd like, but we don't have either of those and neither does the client in question.

                                    IDaaS providers such as onelogin are not ultra cheap. I think SSO+MFA is going to be $4/user/month.

                                    But then you have support for SAML and OpenID Connect for unlimited apps as well as hardware tokens, OTP, APIs and the works.

                                    Yeah, that might defeat the overall purpose. That adds up really quickly when it's just for a wiki.

                                    True, but don't they use mail or any other service?

                                    Sure, but that doesn't offset the Vault cost. So still looking at $6/u/mo just for wiki sign in!

                                    It could. First with SSO you move everything to SSO so it's not just for the wiki. Log in once and be done with it. And if the client for instance use google for email (workplace) then they already have an SSO solution without needing anything extra.

                                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                                    • scottalanmillerS
                                      scottalanmiller @1337
                                      last edited by

                                      @Pete-S said in Adding 2FA to BookStack Wiki:

                                      And if the client for instance use google for email (workplace) then they already have an SSO solution without needing anything extra.

                                      They have no SSO source right now.

                                      1 Reply Last reply Reply Quote 0
                                      • 1
                                      • 2
                                      • 1 / 2
                                      • First post
                                        Last post