| 1 |
Single Sign On cookie, domain and portal URL |
| 2 |
============================================ |
| 3 |
|
| 4 |
SSO cookie |
| 5 |
---------- |
| 6 |
|
| 7 |
The SSO cookie is built by the portal (as described in the |
| 8 |
:ref:`login kinematic<presentation-login>`), or by the |
| 9 |
Handler for cross domain authentication (see |
| 10 |
:ref:`CDA kinematic<cda>`). |
| 11 |
|
| 12 |
To edit SSO cookie parameters, go in Manager, ``General Parameters`` > |
| 13 |
``Cookies``: |
| 14 |
|
| 15 |
- **Cookie name**: name of the cookie, can be changed to avoid |
| 16 |
conflicts with other LemonLDAP::NG installations |
| 17 |
- **Domain**: validity domain for the cookie (the cookie will not be |
| 18 |
sent on other domains) |
| 19 |
|
| 20 |
.. versionadded:: 2.19.0 |
| 21 |
|
| 22 |
* Setting the domain to an empty string will generate cookies that are only |
| 23 |
valid for the SSO portal itself. Which requires using CDA for all |
| 24 |
handler-protected Virtual hosts, including the manager. |
| 25 |
* Setting the domain to the special ``#PORTAL#`` string will generate cookies |
| 26 |
that are valid for the SSO portal's domain, and all subdomains |
| 27 |
* Setting the domain to the special ``#PORTALDOMAIN#`` string will generate |
| 28 |
cookies that are valid for the SSO portal's parent domain |
| 29 |
|
| 30 |
|
| 31 |
- **Multiple domains**: enable :doc:`cross domain mechanism<cda>` |
| 32 |
(without this, you cannot extend SSO to other domains) |
| 33 |
- **Secured cookie**: 4 options: |
| 34 |
|
| 35 |
- **Non secured cookie**: the cookie can be sent over HTTP and HTTPS |
| 36 |
connections |
| 37 |
- **Secured cookie**: the cookie can only be sent over HTTPS |
| 38 |
- **Double cookie**: two cookies are delivered, one for HTTP and |
| 39 |
HTTPS connections, the other for HTTPS only |
| 40 |
- **Double cookie for single session**: same as double cookie but |
| 41 |
only one session is created in session database |
| 42 |
|
| 43 |
- **Javascript protection**: set httpOnly flag, to prevent cookie from |
| 44 |
being leaked by malicious javascript code |
| 45 |
- **SSO cookie expiration time**: by default, SSO cookie is a session |
| 46 |
cookie, which means it will be destroyed when browser is closed. You |
| 47 |
can change this behavior by setting a cookie expiration time. It must |
| 48 |
be an integer. **Cookie Expiration Time** value is a number of |
| 49 |
seconds until the cookie expires. Set a zero value to disable |
| 50 |
expiration time and use a session cookie. |
| 51 |
- **Cookie SameSite value**: the value of the SameSite cookie attribute. By |
| 52 |
default, LemonLDAP::NG will set it to "Lax" in most cases, and "None" if you |
| 53 |
use federated authentiication like SAML or OIdC. Using "None" requires Secured Cookies, |
| 54 |
and accessing applications over HTTPS on most web browsers. |
| 55 |
|
| 56 |
|
| 57 |
.. danger:: |
| 58 |
|
| 59 |
When you change cookie expiration time, it is written on |
| 60 |
the user hard disk unlike session cookie |
| 61 |
|
| 62 |
|
| 63 |
.. attention:: |
| 64 |
|
| 65 |
Changing the domain value will not update other |
| 66 |
configuration parameters, like virtual host names, portal URL, etc. You |
| 67 |
have to update them by yourself. |
| 68 |
|
| 69 |
Portal URL |
| 70 |
---------- |
| 71 |
|
| 72 |
Portal URL is the address used to redirect users on the authentication |
| 73 |
portal by: |
| 74 |
|
| 75 |
- **Handler**: user is redirected if he has no SSO cookie (or in |
| 76 |
:doc:`CDA<cda>` mode) |
| 77 |
- **Portal**: the portal redirect on itself in many cases (credentials |
| 78 |
POST, SAML, etc.) |
| 79 |
|
| 80 |
|
| 81 |
.. danger:: |
| 82 |
|
| 83 |
The portal URL **must** be inside SSO domain. If secured |
| 84 |
cookie is enabled, the portal URL **must** be HTTPS. |