<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Multi-tenancy_authentication</id>
	<title>Multi-tenancy authentication - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Multi-tenancy_authentication"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Multi-tenancy_authentication&amp;action=history"/>
	<updated>2026-05-07T03:12:04Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Multi-tenancy_authentication&amp;diff=4281&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Multi-tenancy_authentication&amp;diff=4281&amp;oldid=prev"/>
		<updated>2024-10-18T06:43:00Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:43, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Multi-tenancy_authentication&amp;diff=4280&amp;oldid=prev</id>
		<title>1&gt;Openumlaut: Added line for email login support (3.11.5)</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Multi-tenancy_authentication&amp;diff=4280&amp;oldid=prev"/>
		<updated>2022-01-20T14:45:29Z</updated>

		<summary type="html">&lt;p&gt;Added line for email login support (3.11.5)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Workplace}}&lt;br /&gt;
=Overview=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Moodle Workplace supports different authentication configurations for each tenant. Currently, the following authentication plugins support multi-tenancy:&lt;br /&gt;
*[[Multi-tenancy authentication#Manual accounts|Manual accounts]]&lt;br /&gt;
*[[Multi-tenancy authentication#Email-based self-registration|Email-based self-registration]]&lt;br /&gt;
*[[Multi-tenancy authentication#OAuth 2|OAuth 2]]&lt;br /&gt;
*[[Multi-tenancy authentication#SAML|SAML]]&lt;br /&gt;
[[Managing authentication|Authentication plugins]] are managed by the administrator. The multi-tenancy awareness is indicated via the Multi-tenant label next to each authentication plugin&lt;br /&gt;
[[File:Multi-tenancy - Manage authentication.png|border|center|frameless|900x900px|alt=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are various places to configure settings for authentication plugins:&lt;br /&gt;
* Site-wide common settings: &amp;#039;&amp;#039;&amp;#039;Site administration &amp;gt; Plugins &amp;gt; Authentication &amp;gt; Manage authentication&amp;#039;&amp;#039;&amp;#039;. Site-wide common settings apply to all plugins, if applicable, for example, &amp;quot;Allowed email domains&amp;quot;. Any common settings that can be overridden at tenant-level can be locked via the &amp;#039;&amp;#039;&amp;#039;Force for all tenants settings&amp;#039;&amp;#039;&amp;#039;. Or, looking at it the other way round, it also can be used as an indication of which settings are configurable per tenant.[[File:Multi-tenancy - Force common settings.png|border|center|frameless|900x900px|alt=]]&lt;br /&gt;
* Site-wide plugin settings: &amp;#039;&amp;#039;&amp;#039;Site administration &amp;gt; Plugins &amp;gt; Authentication &amp;gt; Manage authentication &amp;gt; [Plugin] &amp;gt; Settings&amp;#039;&amp;#039;&amp;#039;. Most authentication plugins offer a range of site-wide settings.&lt;br /&gt;
* [[Multi-tenancy#Tenant Authentication|Tenant-specific common settings]]: &amp;#039;&amp;#039;&amp;#039;Site administration &amp;gt; Users &amp;gt; Organisation &amp;gt; Manage tenants &amp;gt; [Select tenant] &amp;gt; Authentication &amp;gt; Common settings&amp;#039;&amp;#039;&amp;#039;. Here, you can override the site-wide common settings and adjust them for the tenant at hand.&lt;br /&gt;
* [[Multi-tenancy#Tenant Authentication|Tenant-specific plugin settings]]: &amp;#039;&amp;#039;&amp;#039;Site administration &amp;gt; Users &amp;gt; Organisation &amp;gt; Manage tenants &amp;gt; [Select tenant] &amp;gt; Authentication &amp;gt; [Plugin] &amp;gt; Settings&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
Any plugin enabled at tenant level that is able to create new accounts will do so in the tenant where it has been configured. Authentication plugins not supporting multi-tenancy will create users in the default tenant. To provide a degree of multi-tenant support for auth plugins not supporting multi-tenancy, a [[Dynamic rules|Dynamic rule]] has to be created to allocate users to different tenants based on some conditions.&lt;br /&gt;
= Multi-tenant authentication plugins =&lt;br /&gt;
== Manual accounts ==&lt;br /&gt;
When configuring manual accounts at the tenant level, you can override the predefined lock values for each data field. When &amp;#039;&amp;#039;&amp;#039;Custom&amp;#039;&amp;#039;&amp;#039; is selected, you have to choose between the three locking options &amp;#039;&amp;#039;&amp;#039;Unlocked&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Unlocked if empty&amp;#039;&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;&amp;#039;Locked&amp;#039;&amp;#039;&amp;#039;. &lt;br /&gt;
[[File:Multi-tenancy - Authentication Manual accounts.png|border|center|frameless|900x900px|alt=]]&lt;br /&gt;
== Email-based self-registration ==&lt;br /&gt;
When configuring email-based self-registration at the tenant level, you can override the predefined lock values for each data field. When &amp;#039;&amp;#039;&amp;#039;Custom&amp;#039;&amp;#039;&amp;#039; is selected, you have to choose between the three [[Managing authentication#Profile fields data mapping and locking|locking]] options &amp;#039;&amp;#039;&amp;#039;Unlocked&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Unlocked if empty&amp;#039;&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;&amp;#039;Locked&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
== OAuth 2 ==&lt;br /&gt;
The standard [[OAuth 2 services|OAuth 2]] plugin has been extended by a Tenant availability feature which can be accessed via &amp;#039;&amp;#039;&amp;#039;Site administration &amp;gt; Server &amp;gt; OAuth 2 Services&amp;#039;&amp;#039;&amp;#039; or directly from the tenant settings in the Authentication tab.&lt;br /&gt;
[[File:Multi-tenancy - OAuth2 Settings.png|border|center|frameless|994x994px|alt=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new icon labelled Tenant availability has been added to the actions list. Once this has been selected, you can choose between the following self-explanatory options:&lt;br /&gt;
* This service is available to all tenants (including future ones)&lt;br /&gt;
* This service is available only to the following tenants: &amp;lt;select one or many tenants&amp;gt;&lt;br /&gt;
* This service is available to all tenants except the following: &amp;lt;select one or many tenants&amp;gt;&lt;br /&gt;
[[File:Multi-tenancy - OAuth2 Tenant availability.png|border|center|frameless|900x900px|alt=]]&lt;br /&gt;
== SAML ==&lt;br /&gt;
Multi-tenancy support for third-party [https://moodle.org/plugins/auth_saml2 SAML authentication plugin] has been added to the Moodle Workplace codebase. That is, you will need to [[Installing plugins|install]] the plugin as usual before the added multi-tenancy options can be configured.&lt;br /&gt;
&lt;br /&gt;
You can limit IDPs to individual tenants and also configure fields locking per tenant. The following multi-tenancy features have been added to the SAML plugin:&lt;br /&gt;
* SAML2 appears in the list of available authentication plugins on the tenant page. Individual tenants can enable or disable the plugin and also override fields locking.[[File:lock-user-fields-per-tenant.png|border|center|frameless|900x900px|alt=]]&lt;br /&gt;
* Force for all tenant options have been added to the Data mapping section on the SAML2 configuration page (&amp;#039;&amp;#039;&amp;#039;Site administration &amp;gt; Plugins &amp;gt; Authentication &amp;gt; SAML2&amp;#039;&amp;#039;&amp;#039;).&lt;br /&gt;
* Identity providers in SAML2 can be limited to individual tenants. To access its selection, go to the SAML2 settings on the Authentication tab of a tenant. Then select &amp;#039;&amp;#039;&amp;#039;Manage available Identity Providers (IdPs)&amp;#039;&amp;#039;&amp;#039; from the SAML2 section and press the &amp;#039;&amp;#039;&amp;#039;Edit tenant availability&amp;#039;&amp;#039;&amp;#039; button where you can choose between the following self-explanatory options:&lt;br /&gt;
* This service is available to all tenants (including future ones)&lt;br /&gt;
* This service is available only to the following tenants: &amp;lt;select one or many tenants&amp;gt;&lt;br /&gt;
* This service is available to all tenants except the following: &amp;lt;select one or many tenants&amp;gt;[[File:SAML2-tenant-availability.png|border|center|frameless|900x900px|alt=]]&lt;br /&gt;
= Login and signup tenant selector =&lt;br /&gt;
Moodle Workplace offers a site selector on the login and signup pages to select the correct tenant on the authentication page. To enable the site selector, go to &amp;#039;&amp;#039;&amp;#039;Site administration &amp;gt; Plugins &amp;gt; Authentication &amp;gt; Manage authentication&amp;#039;&amp;#039;&amp;#039; and enable the setting &amp;#039;&amp;#039;&amp;#039;Show tenant selector on the login page&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
[[File:Multi-tenancy - Tenant selector admin.png|border|center|frameless|900x900px|alt=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each tenant’s visibility of the selector can be configured in the tenant settings (&amp;#039;&amp;#039;&amp;#039;Show this tenant in the login selector&amp;#039;&amp;#039;&amp;#039;). Once enabled, the site selector is shown in the bottom-right corner of the login and signup pages a few seconds after the page loads. When selecting the &amp;#039;&amp;#039;&amp;#039;Change site&amp;#039;&amp;#039;&amp;#039; option, a modal window will be shown where the user can select an alternative tenant.&lt;br /&gt;
[[File:Multi-tenancy - Login selector.png|border|center|frameless|900x900px|alt=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The authentication buttons on the login page are configured in the [[Multy-tenancy authentication#OAuth 2|OAuth 2 services]] settings. Depending on the tenant availability selection (&amp;#039;&amp;#039;&amp;#039;available to all tenants (including future ones)&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;available only to the following tenants&amp;#039;&amp;#039;&amp;#039;…, or &amp;#039;&amp;#039;&amp;#039;available to all tenants except the following&amp;#039;&amp;#039;&amp;#039;…), different authentication buttons will be shown for different tenant login pages.&lt;br /&gt;
&lt;br /&gt;
Users can login using an email address if their email is not unique across the site, but is unique in the tenant selected in the login screen.&lt;/div&gt;</summary>
		<author><name>1&gt;Openumlaut</name></author>
	</entry>
</feed>