| 1 |
Trusted browser plugin |
| 2 |
======================= |
| 3 |
|
| 4 |
This plugin lets you remember your web browser after a successful login. This trusted browser can then |
| 5 |
be used to skip the entire authentication, or just bypass second factors. |
| 6 |
|
| 7 |
.. important:: |
| 8 |
|
| 9 |
The Trusted Browser feature uses a TOTP challenge behind the scenes. This |
| 10 |
means it only works if the client web browser is in sync with the server. |
| 11 |
|
| 12 |
.. note:: |
| 13 |
|
| 14 |
When logging out explicitely from the *Logout* button on the portal, the |
| 15 |
current browser trust is destroyed. If you want to test this feature |
| 16 |
without having to wait for your existing session to expire, you need to |
| 17 |
manually remove the ``lemonldap`` session cookie (and leave the |
| 18 |
``llngconnection`` long-lived cookie alone. |
| 19 |
|
| 20 |
Configuration |
| 21 |
------------- |
| 22 |
|
| 23 |
- **Parameters**: |
| 24 |
|
| 25 |
- **Activation condition**: Enable the plugin for all users or only under certain conditions |
| 26 |
- **Authentication bypass**: Skip authentication completely if the user has a trusted browser (*not recommended*) |
| 27 |
- **Do not check fingerprint**: enable/disable browser fingerprint checking |
| 28 |
- **Expiration time**: how long browsers are remembered |
| 29 |
- **Cookie name**: trusted browser cookie name |
| 30 |
- **One trusted browser per user**: allow only one trusted browser per user |
| 31 |
New trusted browsers will disable the old ones. This option requires :doc:`Indexing the _session_uid field <browseablesessionbackend>`. |
| 32 |
- **Use time-based fingerprinting**: By default, the trusted browser system uses a time-dependant validation, based on TOTP. Disable this option to reverse to a simpler shared-secret, time-independant validation. This can help if your web browsers are not always synchronized with NTP. |
| 33 |
|
| 34 |
|
| 35 |
Rules examples |
| 36 |
-------------- |
| 37 |
|
| 38 |
* Only allow members of a certain group to remember their browsers :: |
| 39 |
|
| 40 |
inGroup('trusted_users') |
| 41 |
|
| 42 |
* Only allow registering a trusted browser from a certain network :: |
| 43 |
|
| 44 |
inSubnet('10.0.0.0/8', '192.168.0.0/16') |
| 45 |
|
| 46 |
* Only allow remembering the web browser if the authentication was strong enough :: |
| 47 |
|
| 48 |
$authenticationLevel >= 4 |
| 49 |
|
| 50 |
Using trusted browsers to bypass 2FA |
| 51 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 52 |
|
| 53 |
You can use the ``$_trustedBrowser`` session variable in 2FA rules, for example, as a TOTP activation rule :: |
| 54 |
|
| 55 |
has2f("TOTP") and !$_trustedBrowser |
| 56 |
|
| 57 |
means that TOTP will not be asked for trusted browsers |