Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:2.1:authremote [2019/01/15 15:55] (current)
Line 1: Line 1:
 +====== Remote ======
 +
 +^  Authentication ​ ^  Users  ^  Password ​ ^
 +|  ✔  |  ✔  | |
 +
 +<note warning>​This module is a LL::NG specific identity federation protocol. You may rather use standards protocols like [[idpsaml|SAML]],​ [[idpopenidconnect|OpenID Connect]] or [[idpcas|CAS]].</​note>​
 +
 +===== Presentation =====
 +
 +  * The main portal is configured to use CDA. The secondary portal is declared in the Manager of the main LL::NG structure (else user will be rejected).
 +  * The portal of the secondary LL::NG structure is configured to delegate authentication to a remote portal. A request to the main session database is done (trough [[soapsessionbackend|SOAP session backend]]) to be sure that the session exists.
 +  * If ''​exportedAttr''​ is set, only those attributes are copied in the session database of the secondary LL::NG structure. Else, all data are copied in the session database.
 +
 +{{ :​documentation:​remote-principle.png |}}
 +
 +  - User tries to access to an application in the secondary LL::NG structure without having a session in this area
 +  - Redirection to the portal of the secondary area (transparent)
 +  - Redirection to the portal of the main area and normal authentication (if not done before)
 +  - Redirection to the portal of the secondary area (transparent)
 +  - Secondary portal check if remote session is available. It can be done via direct access to the session database or using SOAP access. Then it creates the session (with attribute filter)
 +  - User can now access to the protected application
 +
 +<​note>​Note that if the user is already authenticated on the first portal, all redirections are transparent.</​note>​
 +
 +===== Configuration =====
 +
 +==== Main LL::NG structure ====
 +
 +Go in Manager, and:
 +  * activate CDA in ''​General Parameters''​ » ''​Cookies''​ » ''​Multiple domains''​
 +  * declare secondary portal in ''​General Parameters''​ » ''​Advanced Parameters''​ » ''​Security''​ » ''​Trusted domains''​
 +
 +==== Secondary LL::NG structure ====
 +
 +Configure the portal to use the remote LL::NG structure.
 +
 +In Manager, go in ''​General Parameters''​ » ''​Authentication modules''​ and choose Remote for authentication and users.
 +
 +Then, go in ''​Remote parameters'': ​
 +  * **Portal URL**: remote portal URL
 +  * **Cookie name** (optional): name of the cookie of primary portal, if different from secondary portal
 +  * **Sessions module**: set ''​Lemonldap::​NG::​Common::​Apache::​Session::​SOAP''​ for [[soapsessionbackend|SOAP session backend]].
 +  * **Sessions module options**:
 +    * **proxy**: SOAP sessions end point (see [[soapsessionbackend|SOAP session backend]] documentation)
 +
 +==== Example: interoperability between 2 organizations ====
 +
 +Using this, we can do a very simple interoperability system between 2 organizations using two LL::NG structures:
 +  * each area has 2 portals:
 +    * One standard portal
 +    * One remote portal that delegates authentication to the second organization (just another file on the same server)
 +  * The normal portal has a link included in the authentication form pointing to the remote portal for the users of the other organization
 +
 +So on each main portal, internal users can access normally, and users issued from the other organization have just to click on the link:
 +
 +{{ :​documentation:​remote-interoperability.png |}}
 +
 +  - One user tries to access to the portal
 +  - External user clicks to be redirected to the remote type portal
 +  - After redirection,​ normal authentication in the remote portal
 +  - Redirection to the remote type portal
 +  - Validation of the session: external user has now a local session