DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:authenvvars

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
plugin:authenvvars [2020-05-07 08:56] – [Configuration and Settings] physiklehrerplugin:authenvvars [2021-09-05 10:28] (current) physiklehrer
Line 7: Line 7:
 type       : action, auth type       : action, auth
 lastupdate : 2020-05-02 lastupdate : 2020-05-02
-compatible : Frusterick Manners, 2017-02-19+compatible : Frusterick Manners, Hogfather
 depends    :  depends    : 
 conflicts  conflicts 
Line 29: Line 29:
 protocol. The module places authentication and user information in OIDC_CLAIM_ environment variables. protocol. The module places authentication and user information in OIDC_CLAIM_ environment variables.
  
-The goal of this plugin is to bypass the dokuwiki authentication mechanisms an use the webserver+The goal of this plugin is to bypass the dokuwiki authentication mechanisms and use the webserver
 environment variables for user information. Not dokuwiki ist responseable for authentication but environment variables for user information. Not dokuwiki ist responseable for authentication but
 the webserver. the webserver.
Line 41: Line 41:
  
 Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin.
 +
 +Be sure to enable authennvars by setting $conf['authtype'] = 'authenvvars' in conf/dokuwiki.php.
  
 ===== Usage ===== ===== Usage =====
Line 128: Line 130:
 | ''usernamevar''  | The environment varibale which contains the users name.                                                                                                                                     | | ''usernamevar''  | The environment varibale which contains the users name.                                                                                                                                     |
 | ''emailvar''     | The environment varibale which contains the users email address.                                                                                                                            | | ''emailvar''     | The environment varibale which contains the users email address.                                                                                                                            |
-| ''groupsvar''    | The environment varibale which contains the groups. This plugin expects an array or an object in form of a valid JSON-String. json_decode() decodes the string into an (associated) array. Only the values of that array are important.  |+| ''groupsvar''    | The environment varibale which contains the groups. This plugin expects in case of ''groupformat=json'' an array or an object in form of a valid JSON-String. json_decode() decodes the string into an (associated) array. Only the values of that array are important. Or this plugin expects a comma-separated String of groupnames in case of ''groupformat=csv'' |
 | ''groupformat'' | Possible values are json or csv | | ''groupformat'' | Possible values are json or csv |
-| ''groupsattr''   | In Case of ''groupformat = json'':Contains the required key if the values of the group array are (associative) arrays.                                                                                                       | +| ''groupattr''   | In case of ''groupformat=json'':Contains the required key if the values of the group array are (associative) arrays.                                                                                                       | 
-| ''groupsep'' | Field seperator in case of ''groupformat = csv''|+| ''groupsep'' | Field seperator in case of ''groupformat=csv''|
plugin/authenvvars.1588834576.txt.gz · Last modified: 2020-05-07 08:56 by physiklehrer

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