Debian Codegraph @

doc/sources/admin/adaptativeauthenticationlevel.rst

raw
1 Adaptative Authentication Level
2 ===============================
3
4 Presentation
5 ------------
6
7 A user reaches an authentication level depending on which authentication
8 module was used, and eventually which second factor module.
9
10 This plugin allows to adapt this authentication level depending on
11 other conditions, like network, device, etc.
12
13 Sample use case: a strategic application is configured to require an
14 authentication level of 5. Users obtain level 2 with their login/password
15 and level 5 using a TOTP second factor. You can trust users form internal
16 network by incrementing their authentication level based on their IP address,
17 they would then not be forced to use 2FA to access the strategic application.
18
19 .. tip::
20
21 This use case works if you enable the *Use 2FA for session upgrade* option.
22
23 Configuration
24 -------------
25
26 This plugin is enabled when at least one rule is defined.
27
28 To configure rules, go in ``General Parameters`` > ``Plugins`` >
29 ``Adaptative Authentication Rules``.
30
31 You can then create rules with these fields:
32
33 - **Rule**: The condition that will be evaluated. If this condition
34 does not return true, then the level is not changed.
35 - **Value**: How change the authentication level. First character is
36 ``+``, ``-`` or ``=``, the second part is the number to add, remove
37 or set.
38
39
40 .. tip::
41
42 By example, to add 3 to authentication level for users from 192.168.0.0/16 network:
43
44 - Rule: ``$env->{REMOTE_ADDR} =~ /^192\.168\./``
45 - Value: ``+3``
46