DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:authdjango

AuthDjango Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes

plugin

Last updated on
2018-03-30
Provides
Auth
Repository
Source

Tagged with auth, authentication, django

This plugin allows to authenticate users using a running Django installation. It uses the session of Django, thus the users need to login via Django first.

Installation

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

Configuration and Settings

  • Set the following fields in Dokuwiki configuration
    • authtype to authdjango
    • plugin»authdjango»protocol: Database type of Django database (currently supported: pgsql, mysql, sqlite)
    • plugin»authdjango»server: Hostname or file (sqlite) of Django database
    • plugin»authdjango»user: Database username of Django database (empty for sqlite)
    • plugin»authdjango»db: Database name of Django database (empty for sqlite)
    • plugin»authdjango»password: Database password for Django database (empty for sqlite)
  • or in conf/local.php:
$conf['authtype'] = 'authdjango';
$conf['plugin']['authdjango']['server'] = '';
$conf['plugin']['authdjango']['user'] = '';
$conf['plugin']['authdjango']['db'] = '';
$conf['plugin']['authdjango']['password'] = '';
$conf['plugin']['authdjango']['protocol'] = 'pgsql'; // or other, see PHP PDO documentation

Development

Change Log

  • 2018-03-29
    • Initial release, based on django
  • 2018-03-29
    • Add config defaults and config description strings
    • Some bugfixes

Known Bugs and Issues

ToDo/Wish List

FAQ

Discussion

Note that as of Django 3.1, your django project seems to require

  DEFAULT_HASHING_ALGORITHM='sha1' 

in your settings.py for this Authdjango plugin to read everything correctly. While that doesn't explicitly makes sense, for now it appears to be needed.

See the release notes for Django 3.1 for more details

plugin/authdjango.txt · Last modified: 2021-01-13 04:45 by toastedbagel

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