Activez la connexion Google pour accepter les connexions depuis plusieurs domaines hébergés (alias domaine GSuite)

Currently, the “google oauth2 hd” login setting can either be left blank (allowing login from any Gmail or GSuite/hosted domain account), can be set to * (allowing login from any GSuite/hosted domain account), or can be set to a single GSuite domain name (allowing login from accounts in one GSuite/hosted domain.) A fourth option – already supported by the underlying omniauth-google-oauth2 gem but not currently supported by Discourse – is to specify a list of hosted/GSuite domains (allowing logins from accounts in any one of the specified GSuite domains.)

In other systems, I’ve seen this done by allowing multiple domain names to be comma-delimited or space-delimited in the corresponding setting (google oauth2 hd at <discourse>/admin/site_settings/category/login.) An incomplete PR along these lines can be found at FEATURE: Allow Google Login to be enabled for multiple hosted domains. by aribn · Pull Request #6067 · discourse/discourse · GitHub

8 « J'aime »

Je souhaiterais appuyer cette demande de fonctionnalité. Notre établissement utilise deux domaines distincts : un pour les étudiants (alum.college.com) et un pour le corps professoral et le personnel (college.com). Nous aimerions que les étudiants et le personnel puissent tous deux se connecter à notre forum Discourse via la connexion Google. De nombreuses universités utilisent un système de domaines séparés similaire pour distinguer les adresses e-mail des étudiants et celles du corps professoral et du personnel.

1 « J'aime »