DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:auth_plugins

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
devel:auth_plugins [2023-09-19 10:43] – [createUser] andidevel:auth_plugins [2025-11-07 13:11] (current) – More meaningful headline michaelsy
Line 1: Line 1:
-====== Authentication Plugins ======+====== How to Write an Authentication Plugin ======
  
 DokuWiki's authentication system is highly modular and can, generally speaking, authenticate using anything that is accessible from PHP. Check the [[plugintype>128#extension__table|list of Auth Plugins]] to see what is already available. Auth Plugins can be installed via the [[plugin:Extension|Extension Manager]]. DokuWiki's authentication system is highly modular and can, generally speaking, authenticate using anything that is accessible from PHP. Check the [[plugintype>128#extension__table|list of Auth Plugins]] to see what is already available. Auth Plugins can be installed via the [[plugin:Extension|Extension Manager]].
Line 197: Line 197:
 ==== modifyUser ==== ==== modifyUser ====
  
-optional, set FIXME capability+optional, set ''modLogin'', ''modPass'', ''modName'', ''modMail'', ''modGroups'' capabilities
  
 The [[xref>AuthPlugin::modifyUser()|modifyUser()]] method modifies a user's data. You can expect to only receive data as per set capabilities. The [[xref>AuthPlugin::modifyUser()|modifyUser()]] method modifies a user's data. You can expect to only receive data as per set capabilities.
Line 203: Line 203:
 ==== deleteUsers ==== ==== deleteUsers ====
  
-optional, set FIXME capability+optional, set ''delUser'' capability
  
 The [[xref>AuthPlugin::deleteUsers()|deleteUsers()]] method deletes one or more users. The [[xref>AuthPlugin::deleteUsers()|deleteUsers()]] method deletes one or more users.
Line 209: Line 209:
 ==== addGroup ==== ==== addGroup ====
  
-optional, set FIXME capability+optional
  
-The [[xref>AuthPlugin::addGroup()|addGroup()]] method creates a new group.+The [[xref>AuthPlugin::addGroup()|addGroup()]] method creates a new group. This only needs to be implemented if a group needs to be created before users can be assigned to it.
  
  
Line 218: Line 218:
 ==== logOff ==== ==== logOff ====
  
-optional, set FIXME capability+optional, set ''logout'' capability
  
 The [[xref>AuthPlugin::logOff|logOff()]] method is run in addition to the usual logoff. It is useful with [[#trustExternal|trustExternal()]] to initiate actions for the external backend e.g. use it to clear cookies or similar actions.  The [[xref>AuthPlugin::logOff|logOff()]] method is run in addition to the usual logoff. It is useful with [[#trustExternal|trustExternal()]] to initiate actions for the external backend e.g. use it to clear cookies or similar actions. 
devel/auth_plugins.1695113025.txt.gz · Last modified: by andi

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