GithubHelp home page GithubHelp logo

sven-carstens / cf_google_authenticator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codefareith/cf_google_authenticator

0.0 0.0 0.0 1.74 MB

TYPO3 CMS extension | provide Google 2FA for backend and frontend users

License: GNU General Public License v3.0

PHP 78.19% HTML 20.96% CSS 0.01% JavaScript 0.65% TSQL 0.19%

cf_google_authenticator's Introduction

Google Authenticator

GitHub license GitHub release GitHub pre-release) Travis build Codecov coverage Scrutinizer code quality Requires.io requirements

TYPO3 CMS extension to enable Google 2FA (two factor authentication) for both, frontend- and backend accounts.


Donate via PayPal

Getting Started

Follow these instructions to enable Google 2FA in your TYPO3 CMS installation.

Installation

The extension needs to be installed as any other extension of TYPO3 CMS:

  1. Switch to the module “Extension Manager”.
  2. Get the extension
    1. Get it from the Extension Manager: Press the “Retrieve/Update” button, search for the extension key cf_google_authenticator and import the extension from the repository.
    2. Get it from typo3.org: You can always get the current version from https://extensions.typo3.org/extension/cf_google_authenticator/ by downloading either the t3x or zip version. Upload the file afterward in the Extension Manager.
    3. Get it from packagist.org: Add this extension as dependency using Composer: composer require codefareith/cf-google-authenticator
  3. Change the extension configuration to your needs

Usage

After installing and activating the extension you'll be able to activate 2FA for backend and frontend users.

Backend

  1. Switch to the module "Backend Users"
  2. Select a user you wish to enable 2FA for
  3. Navigate to tab "Google Authenticator"
  4. Check "Enable Google Authenticator"
  5. Within the Google Authenticator App: scan the provided QR code or set up the authenticator manually by using the given secret
  6. Fill out "One-time password" with the code created by your App
  7. Save

On the TYPO3 CMS backend login screen, you'll notice a new field "Google Authenticator Code". If you've activated Google 2FA for your backend user, you'll need to enter the code, generated by the app, to log into your backend account.

If you'll ever lose your Google Authenticator, the only way to disable 2FA is via the database, by setting "tx_cfgoogleauthenticator_enable" to 0, for the desired user.

Frontend

In order to offer frontend users the possibility to secure their accounts via two-factor authentication, two conditions must be met[1]:

  1. in the extension configuration the 2FA must be activated for the frontend (deactivated by default):

    • Select the extension module and search for "[codeFareith] Google Authenticator".
    • right click on the gear (Configure)
    • activate the checkbox under "FE enabled" and then click on "save".
  2. via the backend, the necessary plugin must be placed on a page provided for this purpose:

    • Select a preferred page via the page module and make sure that it is only accessible for logged in frontend users.
    • Then create a new content element on the aforementioned page.
    • Under the "Plug-Ins" tab, select "General Plug-In".
    • In the next step open the next tab called "Plug-Ins".
    • Select "Google Two-Factor-Authentication Setup" from the dropdown and click on save. Done!

[1] After enabling/disabling frontend 2FA, you might need to flush frontend cache in order to show/hide the one-time password field in the login form.

History

See CHANGELOG.md

License

GNU Public License


GitHub followers GitHub forks GitHub stars GitHub watchers

Twitter Follow


GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests GitHub downloads GitHub contributors

GitHub commit activity GitHub last commit GitHub release date GitHub release date pre

GitHub code size in bytes GitHub repo size

cf_google_authenticator's People

Contributors

codefareith avatar dependabot-preview[bot] avatar dependabot-support avatar tuxonice avatar xperseguers avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.