mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 11:56:40 +02:00
MDL-61873 auth: Add privacy implementation for all auth plugins
None of the Auth plugins (except manual and oauth2) have any user preference or database table. They all implement the null provider.
This commit is contained in:
parent
2d8ddc8239
commit
935d2c9f29
20 changed files with 424 additions and 0 deletions
41
auth/cas/classes/privacy/provider.php
Normal file
41
auth/cas/classes/privacy/provider.php
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<?php
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem implementation for auth_cas.
|
||||||
|
*
|
||||||
|
* @package auth_cas
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
namespace auth_cas\privacy;
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem for auth_cas implementing null_provider.
|
||||||
|
*
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
class provider implements \core_privacy\local\metadata\null_provider {
|
||||||
|
/**
|
||||||
|
* Get the language string identifier with the component's language
|
||||||
|
* file to explain why this plugin stores no data.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function get_reason() : string {
|
||||||
|
return 'privacy:metadata';
|
||||||
|
}
|
||||||
|
}
|
|
@ -74,3 +74,5 @@ $string['CASform'] = 'Authentication choice';
|
||||||
$string['noldapserver'] = 'No LDAP server configured for CAS! Syncing disabled.';
|
$string['noldapserver'] = 'No LDAP server configured for CAS! Syncing disabled.';
|
||||||
$string['pluginname'] = 'CAS server (SSO)';
|
$string['pluginname'] = 'CAS server (SSO)';
|
||||||
$string['synctask'] = 'CAS users sync job';
|
$string['synctask'] = 'CAS users sync job';
|
||||||
|
$string['privacy:metadata'] = 'The CAS server (SSO) authentication plugin does not store any personal data.';
|
||||||
|
|
||||||
|
|
41
auth/db/classes/privacy/provider.php
Normal file
41
auth/db/classes/privacy/provider.php
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<?php
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem implementation for auth_db.
|
||||||
|
*
|
||||||
|
* @package auth_db
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
namespace auth_db\privacy;
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem for auth_db implementing null_provider.
|
||||||
|
*
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
class provider implements \core_privacy\local\metadata\null_provider {
|
||||||
|
/**
|
||||||
|
* Get the language string identifier with the component's language
|
||||||
|
* file to explain why this plugin stores no data.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function get_reason() : string {
|
||||||
|
return 'privacy:metadata';
|
||||||
|
}
|
||||||
|
}
|
|
@ -70,3 +70,5 @@ $string['auth_dbusernotexist'] = 'Cannot update non-existent user: {$a}';
|
||||||
$string['auth_dbuserstoadd'] = 'User entries to add: {$a}';
|
$string['auth_dbuserstoadd'] = 'User entries to add: {$a}';
|
||||||
$string['auth_dbuserstoremove'] = 'User entries to remove: {$a}';
|
$string['auth_dbuserstoremove'] = 'User entries to remove: {$a}';
|
||||||
$string['pluginname'] = 'External database';
|
$string['pluginname'] = 'External database';
|
||||||
|
$string['privacy:metadata'] = 'The External database authentication plugin does not store any personal data.';
|
||||||
|
|
||||||
|
|
41
auth/email/classes/privacy/provider.php
Normal file
41
auth/email/classes/privacy/provider.php
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<?php
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem implementation for auth_email.
|
||||||
|
*
|
||||||
|
* @package auth_email
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
namespace auth_email\privacy;
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem for auth_email implementing null_provider.
|
||||||
|
*
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
class provider implements \core_privacy\local\metadata\null_provider {
|
||||||
|
/**
|
||||||
|
* Get the language string identifier with the component's language
|
||||||
|
* file to explain why this plugin stores no data.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function get_reason() : string {
|
||||||
|
return 'privacy:metadata';
|
||||||
|
}
|
||||||
|
}
|
|
@ -28,3 +28,4 @@ $string['auth_emailrecaptcha'] = 'Adds a visual/audio confirmation form element
|
||||||
$string['auth_emailrecaptcha_key'] = 'Enable reCAPTCHA element';
|
$string['auth_emailrecaptcha_key'] = 'Enable reCAPTCHA element';
|
||||||
$string['auth_emailsettings'] = 'Settings';
|
$string['auth_emailsettings'] = 'Settings';
|
||||||
$string['pluginname'] = 'Email-based self-registration';
|
$string['pluginname'] = 'Email-based self-registration';
|
||||||
|
$string['privacy:metadata'] = 'The Email-based self-registration authentication plugin does not store any personal data.';
|
||||||
|
|
41
auth/ldap/classes/privacy/provider.php
Normal file
41
auth/ldap/classes/privacy/provider.php
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<?php
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem implementation for auth_ldap.
|
||||||
|
*
|
||||||
|
* @package auth_ldap
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
namespace auth_ldap\privacy;
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem for auth_ldap implementing null_provider.
|
||||||
|
*
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
class provider implements \core_privacy\local\metadata\null_provider {
|
||||||
|
/**
|
||||||
|
* Get the language string identifier with the component's language
|
||||||
|
* file to explain why this plugin stores no data.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function get_reason() : string {
|
||||||
|
return 'privacy:metadata';
|
||||||
|
}
|
||||||
|
}
|
|
@ -165,3 +165,5 @@ $string['useracctctrlerror'] = 'Error getting userAccountControl for {$a}';
|
||||||
// Deprecated since Moodle 3.4.
|
// Deprecated since Moodle 3.4.
|
||||||
$string['auth_ldap_creators'] = 'List of groups or contexts whose members are allowed to create new courses. Separate multiple groups with \';\'. Usually something like \'cn=teachers,ou=staff,o=myorg\'';
|
$string['auth_ldap_creators'] = 'List of groups or contexts whose members are allowed to create new courses. Separate multiple groups with \';\'. Usually something like \'cn=teachers,ou=staff,o=myorg\'';
|
||||||
$string['auth_ldap_creators_key'] = 'Creators';
|
$string['auth_ldap_creators_key'] = 'Creators';
|
||||||
|
$string['privacy:metadata'] = 'The LDAP server authentication plugin does not store any personal data.';
|
||||||
|
|
||||||
|
|
41
auth/lti/classes/privacy/provider.php
Normal file
41
auth/lti/classes/privacy/provider.php
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<?php
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem implementation for auth_lti.
|
||||||
|
*
|
||||||
|
* @package auth_lti
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
namespace auth_lti\privacy;
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem for auth_lti implementing null_provider.
|
||||||
|
*
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
class provider implements \core_privacy\local\metadata\null_provider {
|
||||||
|
/**
|
||||||
|
* Get the language string identifier with the component's language
|
||||||
|
* file to explain why this plugin stores no data.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function get_reason() : string {
|
||||||
|
return 'privacy:metadata';
|
||||||
|
}
|
||||||
|
}
|
|
@ -24,3 +24,4 @@
|
||||||
|
|
||||||
$string['auth_ltidescription'] = 'The LTI authentication plugin, together with the \'Publish as LTI tool\' enrolment plugin, allows remote users to access selected courses and activities. In other words, Moodle functions as an LTI tool provider.';
|
$string['auth_ltidescription'] = 'The LTI authentication plugin, together with the \'Publish as LTI tool\' enrolment plugin, allows remote users to access selected courses and activities. In other words, Moodle functions as an LTI tool provider.';
|
||||||
$string['pluginname'] = 'LTI';
|
$string['pluginname'] = 'LTI';
|
||||||
|
$string['privacy:metadata'] = 'The LTI authentication plugin does not store any personal data.';
|
||||||
|
|
41
auth/mnet/classes/privacy/provider.php
Normal file
41
auth/mnet/classes/privacy/provider.php
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<?php
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem implementation for auth_mnet.
|
||||||
|
*
|
||||||
|
* @package auth_mnet
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
namespace auth_mnet\privacy;
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem for auth_mnet implementing null_provider.
|
||||||
|
*
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
class provider implements \core_privacy\local\metadata\null_provider {
|
||||||
|
/**
|
||||||
|
* Get the language string identifier with the component's language
|
||||||
|
* file to explain why this plugin stores no data.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function get_reason() : string {
|
||||||
|
return 'privacy:metadata';
|
||||||
|
}
|
||||||
|
}
|
|
@ -35,3 +35,4 @@ $string['sso_mnet_login_refused'] = 'Username {$a->user} is not permitted to log
|
||||||
$string['sso_sp_description'] = 'Publish this service to allow authenticated users from {$a} to access your site without having to re-login. <ul><li><em>Dependency</em>: You must also <strong>subscribe</strong> to the SSO (Identity Provider) service on {$a}.</li></ul><br />Subscribe to this service to allow your users to roam to the {$a} site without having to re-login there. <ul><li><em>Dependency</em>: You must also <strong>publish</strong> the SSO (Identity Provider) service to {$a}.</li></ul><br />';
|
$string['sso_sp_description'] = 'Publish this service to allow authenticated users from {$a} to access your site without having to re-login. <ul><li><em>Dependency</em>: You must also <strong>subscribe</strong> to the SSO (Identity Provider) service on {$a}.</li></ul><br />Subscribe to this service to allow your users to roam to the {$a} site without having to re-login there. <ul><li><em>Dependency</em>: You must also <strong>publish</strong> the SSO (Identity Provider) service to {$a}.</li></ul><br />';
|
||||||
$string['sso_sp_name'] = 'SSO (Service Provider)';
|
$string['sso_sp_name'] = 'SSO (Service Provider)';
|
||||||
$string['pluginname'] = 'MNet authentication';
|
$string['pluginname'] = 'MNet authentication';
|
||||||
|
$string['privacy:metadata'] = 'The MNet authentication plugin does not store any personal data.';
|
||||||
|
|
41
auth/nologin/classes/privacy/provider.php
Normal file
41
auth/nologin/classes/privacy/provider.php
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<?php
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem implementation for auth_nologin.
|
||||||
|
*
|
||||||
|
* @package auth_nologin
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
namespace auth_nologin\privacy;
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem for auth_nologin implementing null_provider.
|
||||||
|
*
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
class provider implements \core_privacy\local\metadata\null_provider {
|
||||||
|
/**
|
||||||
|
* Get the language string identifier with the component's language
|
||||||
|
* file to explain why this plugin stores no data.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function get_reason() : string {
|
||||||
|
return 'privacy:metadata';
|
||||||
|
}
|
||||||
|
}
|
|
@ -24,3 +24,4 @@
|
||||||
|
|
||||||
$string['auth_nologindescription'] = 'Auxiliary plugin that prevents user to login into system and also discards any mail sent to the user. Can be used to <em>suspend</em> user accounts.';
|
$string['auth_nologindescription'] = 'Auxiliary plugin that prevents user to login into system and also discards any mail sent to the user. Can be used to <em>suspend</em> user accounts.';
|
||||||
$string['pluginname'] = 'No login';
|
$string['pluginname'] = 'No login';
|
||||||
|
$string['privacy:metadata'] = 'The No login authentication plugin does not store any personal data.';
|
||||||
|
|
41
auth/none/classes/privacy/provider.php
Normal file
41
auth/none/classes/privacy/provider.php
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<?php
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem implementation for auth_none.
|
||||||
|
*
|
||||||
|
* @package auth_none
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
namespace auth_none\privacy;
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem for auth_none implementing null_provider.
|
||||||
|
*
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
class provider implements \core_privacy\local\metadata\null_provider {
|
||||||
|
/**
|
||||||
|
* Get the language string identifier with the component's language
|
||||||
|
* file to explain why this plugin stores no data.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function get_reason() : string {
|
||||||
|
return 'privacy:metadata';
|
||||||
|
}
|
||||||
|
}
|
|
@ -24,3 +24,4 @@
|
||||||
|
|
||||||
$string['auth_nonedescription'] = 'Users can sign in and create valid accounts immediately, with no authentication against an external server and no confirmation via email. Be careful using this option - think of the security and administration problems this could cause.';
|
$string['auth_nonedescription'] = 'Users can sign in and create valid accounts immediately, with no authentication against an external server and no confirmation via email. Be careful using this option - think of the security and administration problems this could cause.';
|
||||||
$string['pluginname'] = 'No authentication';
|
$string['pluginname'] = 'No authentication';
|
||||||
|
$string['privacy:metadata'] = 'The No authentication plugin does not store any personal data.';
|
||||||
|
|
41
auth/shibboleth/classes/privacy/provider.php
Normal file
41
auth/shibboleth/classes/privacy/provider.php
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<?php
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem implementation for auth_shibboleth.
|
||||||
|
*
|
||||||
|
* @package auth_shibboleth
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
namespace auth_shibboleth\privacy;
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem for auth_shibboleth implementing null_provider.
|
||||||
|
*
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
class provider implements \core_privacy\local\metadata\null_provider {
|
||||||
|
/**
|
||||||
|
* Get the language string identifier with the component's language
|
||||||
|
* file to explain why this plugin stores no data.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function get_reason() : string {
|
||||||
|
return 'privacy:metadata';
|
||||||
|
}
|
||||||
|
}
|
|
@ -57,3 +57,5 @@ $string['shib_no_attributes_error'] = 'You seem to be Shibboleth authenticated b
|
||||||
$string['shib_not_all_attributes_error'] = 'Moodle needs certain Shibboleth attributes which are not present in your case. The attributes are: {$a}<br />Please contact the webmaster of this server or your Identity Provider.';
|
$string['shib_not_all_attributes_error'] = 'Moodle needs certain Shibboleth attributes which are not present in your case. The attributes are: {$a}<br />Please contact the webmaster of this server or your Identity Provider.';
|
||||||
$string['shib_not_set_up_error'] = 'Shibboleth authentication doesn\'t seem to be set up correctly because no Shibboleth environment variables are present for this page. Please consult the <a href="README.txt">README</a> for further instructions on how to set up Shibboleth authentication or contact the webmaster of this Moodle installation.';
|
$string['shib_not_set_up_error'] = 'Shibboleth authentication doesn\'t seem to be set up correctly because no Shibboleth environment variables are present for this page. Please consult the <a href="README.txt">README</a> for further instructions on how to set up Shibboleth authentication or contact the webmaster of this Moodle installation.';
|
||||||
$string['pluginname'] = 'Shibboleth';
|
$string['pluginname'] = 'Shibboleth';
|
||||||
|
$string['privacy:metadata'] = 'The Shibboleth authentication plugin does not store any personal data.';
|
||||||
|
|
||||||
|
|
41
auth/webservice/classes/privacy/provider.php
Normal file
41
auth/webservice/classes/privacy/provider.php
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<?php
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem implementation for auth_webservice.
|
||||||
|
*
|
||||||
|
* @package auth_webservice
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
namespace auth_webservice\privacy;
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
/**
|
||||||
|
* Privacy Subsystem for auth_webservice implementing null_provider.
|
||||||
|
*
|
||||||
|
* @copyright 2018 Carlos Escobedo <carlos@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
class provider implements \core_privacy\local\metadata\null_provider {
|
||||||
|
/**
|
||||||
|
* Get the language string identifier with the component's language
|
||||||
|
* file to explain why this plugin stores no data.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function get_reason() : string {
|
||||||
|
return 'privacy:metadata';
|
||||||
|
}
|
||||||
|
}
|
|
@ -24,3 +24,4 @@
|
||||||
|
|
||||||
$string['auth_webservicedescription'] = 'This authentication method should be used for accounts that are exclusively for use by web service clients.';
|
$string['auth_webservicedescription'] = 'This authentication method should be used for accounts that are exclusively for use by web service clients.';
|
||||||
$string['pluginname'] = 'Web services authentication';
|
$string['pluginname'] = 'Web services authentication';
|
||||||
|
$string['privacy:metadata'] = 'The Web services authentication plugin does not store any personal data.';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue