diff --git a/classes/privacy/provider.php b/classes/privacy/provider.php new file mode 100644 index 0000000..d969cfe --- /dev/null +++ b/classes/privacy/provider.php @@ -0,0 +1,53 @@ +. + +/** + * Privacy provider. + * + * @package auth_userkey + * @author Dmitrii Metelkin (dmitriim@catalyst-au.net) + * @copyright 2020 Catalyst IT + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace auth_userkey\privacy; + +defined('MOODLE_INTERNAL') || die; + +use core_privacy\local\metadata\null_provider; +use core_privacy\local\legacy_polyfill; + +/** + * Privacy provider. + * + * @copyright 2020 Catalyst IT + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class provider implements null_provider { + + use legacy_polyfill; + + /** + * 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() { + return 'privacy:metadata'; + } + +} diff --git a/lang/en/auth_userkey.php b/lang/en/auth_userkey.php index d916b6b..27f4ecf 100644 --- a/lang/en/auth_userkey.php +++ b/lang/en/auth_userkey.php @@ -52,3 +52,4 @@ $string['ssourl'] = 'URL of SSO host'; $string['ssourl_desc'] = 'URL of the SSO host to redirect users to. If defined users will be redirected here on login instead of the Moodle Login page'; $string['redirecterrordetected'] = 'Unsupported redirect to {$a} detected, execution terminated.'; $string['noip'] = 'Unable to fetch IP address of client.'; +$string['privacy:metadata'] = 'User key authentication plugin does not store any personal data.';