DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:authjoomla3

authjoomla3 Plugin

Compatible with DokuWiki

  • rc2020-06-01 "Hogfather" unknown
  • 2018-04-22 "Greebo" unknown
  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" yes

plugin

Last updated on
2017-01-06
Provides
Auth
Repository
Source

Tagged with joomla

DokuWiki plugin to authenticate against a Joomla 3 installation.

Have a look at https://github.com/snaiperskaya96/dokuwiki-authjoomla3-plugin/blob/master/README.md to see a more detailed documentation.

Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Configuration and Settings

Go to the configuration page, then

  1. change the option Authentication backend to authjoomla3, but do not save yet.
  2. go to the section Authjoomla3 and type in the absolute path to your Joomla 3 installation, e.g. /var/www/html/joomla
  3. save your configuration

Now you should be able to login with your Joomla account.

:!: Once you changed the authentication backend, you won't be able to log in with your previous credentials. If the Joomla authentification fails, go to conf/local.php and change

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

to

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

to switch back to the DokuWiki authentification.

Development

Change Log

Known Bugs and Issues

ToDo/Wish List

FAQ

Discussion

For security reasons setting AuthPDO can be better, because unlike authjoomla3 it doesn't access Joomla directory. So we can limit the PHP access of web sites to each other, with open_basedir. For example, using NGINX:

location ~ \.php$ {
    try_files     $uri $uri/ /doku.php;
    fastcgi_pass  unix:/run/php-fpm/php-fpm.sock;
    fastcgi_param SCRIPT_FILENAME    $document_root$fastcgi_script_name;
    fastcgi_param PHP_VALUE open_basedir="/usr/share/nginx/www/dokuwiki/:/tmp/";
    include       fastcgi_params;
}

So DokuWiki site would have access only to its folder (and temp folder or whatever you set there), but not to Joomla files. Also, the DokuWiki user for the database can have very limited rights too — just to read users tables information.

plugin/authjoomla3.txt · Last modified: 2020-02-07 17:09 by Aleksandr