Debian Codegraph @

doc/sources/admin/authcustom.rst

raw
1 Custom authentication modules
2 =============================
3
4 ============== ===== ========
5 Authentication Users Password
6 ============== ===== ========
7 ✔ ✔ ✔
8 ============== ===== ========
9
10 Presentation
11 ------------
12
13 This artifact allows one to define its own modules (authentication, user
14 database, password or register database).
15
16
17 .. tip::
18
19 The developer documentation is available in Portal manpages.
20 See Auth.pod and UserDB.pod
21
22 Configuration
23 -------------
24
25 In Manager, go in ``General Parameters`` > ``Authentication modules``
26 and choose 'Custom module'.
27
28 Then, you just have to define class names of your custom modules in
29 "Custom module names". Custom parameters can be set in "Additional
30 parameters". Full path must be specify.
31
32 You can define your own customAuth module icon. Icon must be in
33 site/htdocs/static/common/modules/icon.png
34
35
36 .. tip::
37
38 ::Auth::My::Dev.pm means Lemonldap::NG::Portal::Auth::My::Dev
39
40
41
42 .. attention::
43
44 Be careful. Don't use an already attributed name in
45 configuration.
46
47 These parameters are available in your plugins using
48 ``$self->conf->{customAddParams}->{<customName>}``.
49
50 Read portal manpages to see how to write these plugins.