GithubHelp home page GithubHelp logo

classicvalues / moodle-a2fa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hbattat/moodle-a2fa

0.0 1.0 0.0 30 KB

Étouffée - Two-factor authentication for Moodle. Google Authentication for Moodle

License: Apache License 2.0

PHP 82.91% HTML 17.09%

moodle-a2fa's Introduction

A2FA or Etouffee as I like to call it!

A2FA is multi-factor authentication plugin that uses time-based tokens generated every 60 seconds in Google Authenticator app. A2FA Stands for Another Two-Factor Authentication

This plugin requires another small plugin (profile field plugin) get it from Moodle plugin directory or from Github

The field is to add a QR code for the user to be able to sync Google Authenticator with the a2fa system.

Installation:

To install these plugins use moodle plugin installation interface to upload a2fa.zip and follow installation steps (use Authentication method as plugin type).

Or upload the a2fa folder to /auth/ directory and follow installation steps after you visit your site's main page.

Then install the afaqr plugin by uploading the afaqr.zip using the plugin installation interface (Choose profile field as a plugin type)

  • Once these plugins are installed, go to Site Administration > Users > Accounts > User profile fields

  • Add an a2fa QR code input with the shortname a2fasecret (This name is being used in the code and has to match for the system to work)

  • Make this field Visible to user

Now go to Site Administration > Plugins > Authentication > Manage authentication and enable A2FA

Once the authentication method is enable go to the user that you want to force using this auth method and edit their authentication method.

How to set up A2FA for a user:

If you set the login methed for your user(s) to be A2FA the user cannot login to set up their Authenticator app with the QR code because they don't have the 60-second password on their phone or tablet to log in (it is not yet set up)

One way to solve this issue is by generating the QR code and email it to your user, or have tell your users to set up the Authenticator app before you turn on the A2FA for them (Give them a week or so for example)

How to login:

Once the A2FA is activated for a user, the default login page does not allow the user to successfully login because it does not have the required field for the one-time token generated by Goodle Authenticator app.

The default login page for this plugin is:

yourmoodlesite.com/auth/a2fa/login.php

You could make this login page the default for all users but if a user does not have the A2FA set up or enabled they will not be able to login. So rather, just have your A2FA user go to the above url to login.

moodle-a2fa's People

Contributors

hbattat avatar mouneyrac avatar

Watchers

 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.