Module Description
Synopsis
This module is primarily intended for multilingual sites that detect the user language via the URL and which utilize different top-level domains (TLDs).

You may have both example.com and example.es, for example.

Administration of such sites can often be frustrating, since cookie policies do not allow example.es to read the session cookies set upon login to example.com. Users and administrators must therefore log into each site separately, even though the installation of Drupal is the same.

Drupal 7 When enabled, this module will, upon successful login, log the user into the site in each language via special URLs. This is done using single-use, time-limited authentication tokens that are only intended to last for a few seconds.

Drupal 8 This module allows to automatically log the user in when getting a 403 error page if he/she is logged in on the default language domain.

Note on security It is recommended to serve i18n_sso/* paths over HTTPS. That will provide extra security.

Requirements
This module requires no modules outside of Drupal core.

Installation/activation
Install and enable this module like any other drupal 8 module.

Configuration (Drupal 8)
This module adds a javascript file on 403 pages to log the user in using ajax requests. During the requests the javascript add some markup on the page to inform the visitor about the status of the process.

You can control the jQuery selector on which to append this markup by overriding the selector in the services.yml file of your website. See the parameters section of the i18n_sso.services.yml file.

How it works (Drupal 8)
On a website with the domains example.com and example.es. example.com is the default language domain.

When getting a 403 page on example.es, the module adds a JS file.

The javascript makes a first request on the endpoint example.com/i18n_sso/get-token:


* if the user is not logged in on this domain, a message is displayed asking the user to log in on the default language domain (example.com).
* otherwise a token is retrieved or generated for this user and sent back in the response. The token lifetime is 10 minutes.

If a token is obtained, the javascript makes a second request on example.es/i18n_sso/login with the token in parameter:


* if the token is still valid, the user is logged in and so a session cookie can be set on the example.es domain. And the page is reloaded.
* if the token is not valid anymore a message is displayed to inform the user that an error has occurred.

Maintainers

* Kevin Kaland (wizonesolutions)
* Bastien Rigon (barig)
* Florent Torregrosa (Grimreaper)

Sponsor
Project Ricochet sponsored the D7 version.

Project Usage
59
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to solve the issue of users having to log into each language domain separately on multilingual sites with different top-level domains by automatically logging them in across all domains upon successful login.
Data Name
i18n_sso

OPENAI CHATBOT

OPENAI CHATBOT

14:34:40
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.