DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:authmantis

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:authmantis [2020-06-14 18:54] – Replace Ventzy Kunev's original plugin by the "official" MantisBT supported one - full rewrite of the plugin page dregadplugin:authmantis [2024-04-19 13:55] (current) – [FAQ] 82.135.123.115
Line 7: Line 7:
 type       : Auth type       : Auth
 lastupdate : 2020-06-14 lastupdate : 2020-06-14
-compatible : Weatherwax, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo, Hogfather++compatible : Weatherwax, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo, Hogfather, Igor, Jack Jackrum, Kaos+
 depends    :  depends    : 
 conflicts  conflicts 
Line 16: Line 16:
 bugtracker : https://github.com/mantisbt/dokuwiki-plugin-authmantis/issues bugtracker : https://github.com/mantisbt/dokuwiki-plugin-authmantis/issues
 sourcerepo : https://github.com/mantisbt/dokuwiki-plugin-authmantis sourcerepo : https://github.com/mantisbt/dokuwiki-plugin-authmantis
 +donationurl: https://github.com/sponsors/dregad
 ---- ----
  
Line 66: Line 67:
 === Access Control List Configuration === === Access Control List Configuration ===
  
-Setup ACL rules for groups as appropriate for your environment, by defining entries in ''acl.auth.php'' for each access level defined in your MantisBT instance. +Setup ACL rules for groups as appropriate for your environment, by defining entries in ''acl.auth.php'' for each access level defined in your MantisBT instance.
  
 For example, with default MantisBT access levels your setup could be: For example, with default MantisBT access levels your setup could be:
Line 78: Line 79:
 *  @ADMINISTRATOR  16 *  @ADMINISTRATOR  16
 </code> </code>
 +
 +In addition to the above, if you want anonymous, read-only access to your wiki for everyone (i.e. including non logged-in users), you could add
 +<code>
 +*  @ALL            1
 +</code>
 +
 +Please refer to [[:acl|Access Control Lists (ACL)s]] documentation for further information.
  
 === MantisBT Core Initialization === === MantisBT Core Initialization ===
Line 102: Line 110:
     * Select **authmantis** as //Authentication backend//     * Select **authmantis** as //Authentication backend//
     * Add **@ADMINISTRATOR** in the //Superuser// field     * Add **@ADMINISTRATOR** in the //Superuser// field
-4. **Save** the changes.+  - **Save** the changes.
  
 Alternatively, you can manually edit the ''local.php'' (or ''local.protected.php'') file: Alternatively, you can manually edit the ''local.php'' (or ''local.protected.php'') file:
Line 112: Line 120:
 </code> </code>
  
 +==== Content Security Policy ====
 +
 +MantisBT enables [[WP>Content_Security_Policy|Content Security Policy]] by default. 
 +This can cause issues and prevent DokuWiki from functioning properly((https://github.com/mantisbt/dokuwiki-plugin-authmantis/issues/2)) when this plugin is installed.
 +
 +To fix the problem, please **install the [[cspheader]] plugin**, and configure it as follows:
 +
 +^ Directive ^ Value ^
 +| script-src | '''self' 'unsafe-inline''' |
 +| style-src | '''self' 'unsafe-inline''' |
 +| img-src | '''self' www.dokuwiki.org data:'' |
 +
 +Other settings are left as default (specifically, //default-src// and //base-uri// set to '''self''', all other directives empty).
 +
 +The above settings have been confirmed working with DokuWiki's default template, but may need to be adapted if using a different template or to your sites' specifics.
  
 ===== Development ===== ===== Development =====
Line 143: Line 166:
 ===== FAQ ===== ===== FAQ =====
  
-==== I locked myself out, what do I do now? ====+===== I locked myself out, what do I do now? =====
  
   - Edit your local configuration file ''./conf/local.php''   - Edit your local configuration file ''./conf/local.php''
plugin/authmantis.1592153662.txt.gz · Last modified: 2020-06-14 18:54 by dregad

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