DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:authg2fa

This is an old revision of the document!


authg2fa Plugin

Compatible with DokuWiki

Hrun, Binky, Ponder Stibbons, Detritus, Elenor Of Tsort

plugin Another Google 2 Factor Authentication Plugin

Last updated on
2016-11-04
Provides
Auth
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to motp, authgoogle2fa

Tagged with 2fa, authentication, authenticator, google, two-factor

Installation

Copy the unzipped folder to your /lib/plugins directory and activate the plugin. Then, set your options in Admin → Configuration Settings. Don't forget to change the authentication type to authg2fa instead of authplain.

You can revert to authplain by editing your /conf/local.php file:

$conf['authtype'] = 'authplain';

Caveats

Using the standard DokuWiki settings, users aren't able to change their DokuWiki passwords anymore. They will be always prompted with “Wrong Password”.

A DokuWiki setting can disable password verification on profile update:

$conf['profileconfirm'] = false;

The other problem is periodic rechecking of the user's credentials. By default, DokuWiki tries every 900 seconds to check the password. As there is no current 2FA secret available by that time, the check will fail and the user is logged out. You can increase the Timeout to, e.g. 24h, by settings:

$conf['auth_security_timeout'] = 24*3600;

Configuration and Settings

The available settings are as follows:

  • Enable/Disable G2FA authentication
  • Force G2FA authentication for all users (disallow others)
  • Hint G2FA (notify the user to update his/her profile)

The individual G2FA secrets can be configured in the user's profile and the QR Code displayed. An admin plugin is provided which allows the generation of new secrets. This is not yet feature complete.

Development

The plugin is heavily based on authgoogl2fa, but extended by many features. Feel free to comment and request features below.

You can follow the development on https://code.rnb-consulting.at/tag/authg2fa_plugin/

Change Log

Discussion

Please use the bug tracker at https://code.rnb-consulting.at/tag/authg2fa_plugin/

it would be nice if the user could test the just created/imported code to be sure that everything is ok. — Finkregh 2014-06-25 12:16

plugin/authg2fa.1478245571.txt.gz · Last modified: 2016-11-04 08:46 by 80.110.155.152

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki