Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
documentation:latest:authcustom [2019/02/06 18:16]
documentation:latest:authcustom [2019/12/17 16:13]
coudot [Configuration]
Line 1: Line 1:
 +====== Custom authentication modules ======
  
 +^  Authentication ​ ^  Users  ^  Password ​ ^
 +|  ✔  |  ✔  |  ✔  |
 +
 +===== Presentation =====
 +
 +This artifact allows one to define its own modules (authentication,​ user database, password or register database).
 +
 +<note tip>The developer documentation is available in Portal manpages. See Auth.pod and UserDB.pod
 +</​note>​
 +===== Configuration =====
 +In Manager, go in ''​General Parameters''​ > ''​Authentication modules''​ and choose '​Custom module'​.
 +
 +Then, you just have to define class names of your custom modules in "​Custom module names"​. Custom parameters can be set in "​Additional parameters"​. Full path must be specify.
 +
 +You can define your own customAuth module icon. Icon must be in site/​htdocs/​static/​common/​modules/​icon.png
 +
 +<note tip>
 +::​Auth::​My::​Dev.pm means Lemonldap::​NG::​Portal::​Auth::​My::​Dev
 +</​note>​
 +
 +<note important>​
 +Be careful. Don' t use an already attributed name in configuration.
 +</​note>​
 +These parameters are available in your plugins using ''​$self->​conf->​{customAddParams}->​{//​customName//​}''​.
 +
 +Read portal manpages to see how to write these plugins.