| 1 |
Cross Domain Authentication |
| 2 |
=========================== |
| 3 |
|
| 4 |
Presentation |
| 5 |
------------ |
| 6 |
|
| 7 |
:ref:`cda` |
| 8 |
|
| 9 |
Configuration |
| 10 |
------------- |
| 11 |
|
| 12 |
Go in Manager, ``General Parameters`` » ``Cookies`` » |
| 13 |
``Multiple domains`` and set to ``On``. |
| 14 |
|
| 15 |
To use this feature only locally, edit ``lemonldap-ng.ini`` in section |
| 16 |
[all]: |
| 17 |
|
| 18 |
.. code-block:: ini |
| 19 |
|
| 20 |
[all] |
| 21 |
cda = 1 |
| 22 |
|
| 23 |
|
| 24 |
.. attention:: |
| 25 |
|
| 26 |
If your handler is being served by Nginx, you have to |
| 27 |
uncomment the following lines in your nginx configuration file: |
| 28 |
|
| 29 |
:: |
| 30 |
|
| 31 |
# If CDA is used, uncomment this |
| 32 |
auth_request_set $cookie_value $upstream_http_set_cookie; |
| 33 |
add_header Set-Cookie $cookie_value; |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
Handlers |
| 38 |
~~~~~~~~ |
| 39 |
|
| 40 |
Choose "CDA" as type for each virtualHost concerned by CDA *(ie not in |
| 41 |
main domain)*. |
| 42 |
|