| 1 |
Remember authentication choice plugin |
| 2 |
===================================== |
| 3 |
|
| 4 |
This plugin enables automatic authentication, based upon the last user authentication choice. |
| 5 |
|
| 6 |
For this plugin to work, you have to configure a set of :doc:`authentication modules<authchoice>`. |
| 7 |
|
| 8 |
If you have multiple SAML, OIDC or CAS issuers, you should define a dedicated choice for each of these issuers, and set the corresponding URL to ``/?idpName=yourSAMLidp`` or ``/?idp=yourOIDCidp``. |
| 9 |
|
| 10 |
Configuration |
| 11 |
------------- |
| 12 |
|
| 13 |
Once enabled (section "General Parameters > Plugins"), you can set these parameters. |
| 14 |
|
| 15 |
- **Parameters**: |
| 16 |
|
| 17 |
- **Activation**: Rule to enable/disable this plugin |
| 18 |
- **Cookie name**: Name of the cookie storing the authentication choice |
| 19 |
- **Cookie lifetime**: Duration of the cookie (seconds) storing the authentication choice |
| 20 |
- **Check by default**: Is the checkbox "Remember my choice" checked by default? |
| 21 |
- **Timer before automatic authentication choice**: Timer before automatic authentication choice happens, if user has previously authorized the storage of authentication choice in a cookie |
| 22 |
|
| 23 |
.. tip:: |
| 24 |
|
| 25 |
For instance, you may allow users from 192.168.0.0/16 private network to have the "Remember authentication choice" checkbox: |
| 26 |
|
| 27 |
- Rule: ``$env->{REMOTE_ADDR} =~ /^192\.168\./`` |