refactor(auth_jwt): update terminology from user key to JWT
Some checks failed
ci / ci (push) Failing after 0s

Aligned terminology with JWT standards by changing references from "user key" to "JWT" for better clarity and consistency. This enhances understanding for developers and users familiar with JWT (JSON Web Token) authentication, ensuring the plugin's description and functionality are clear.
This commit is contained in:
Kumi 2024-06-25 18:24:00 +02:00
parent 863cb55ee3
commit dbcf9bebc3
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -24,8 +24,8 @@
defined('MOODLE_INTERNAL') || die; defined('MOODLE_INTERNAL') || die;
$string['pluginname'] = 'User key authentication'; $string['pluginname'] = 'JWT authentication';
$string['auth_jwtdescription'] = 'Log in to Moodle using one time user key.'; $string['auth_jwtdescription'] = 'Log in to Moodle using JWT.';
$string['mappingfield'] = 'Mapping field'; $string['mappingfield'] = 'Mapping field';
$string['mappingfield_desc'] = 'This user field will be used to find relevant user in the LMS.'; $string['mappingfield_desc'] = 'This user field will be used to find relevant user in the LMS.';
$string['iprestriction'] = 'IP restriction'; $string['iprestriction'] = 'IP restriction';
@ -35,9 +35,9 @@ $string['ipwhitelist'] = 'Whitelist IP ranges';
$string['ipwhitelist_desc'] = "Ignore IP restrictions if the IP address the token was issued for or the login attempt comes from falls within any of these ranges. $string['ipwhitelist_desc'] = "Ignore IP restrictions if the IP address the token was issued for or the login attempt comes from falls within any of these ranges.
\nThis can happen when some users reach Moodle or the system issuing login tokens via a private network or DMZ. \nThis can happen when some users reach Moodle or the system issuing login tokens via a private network or DMZ.
\nIf the route to either the system issuing tokens or this Moodle is via a private address range then set this value to 10.0.0.0/8;172.16.0.0/12;192.168.0.0/16"; \nIf the route to either the system issuing tokens or this Moodle is via a private address range then set this value to 10.0.0.0/8;172.16.0.0/12;192.168.0.0/16";
$string['keylifetime'] = 'User key life time'; $string['keylifetime'] = 'JWT life time';
$string['keylifetime_desc'] = 'Life time in seconds of the each user login key.'; $string['keylifetime_desc'] = 'Life time in seconds of the each user login key.';
$string['incorrectkeylifetime'] = 'User key life time should be a number'; $string['incorrectkeylifetime'] = 'JWT life time should be a number';
$string['createuser'] = 'Create user?'; $string['createuser'] = 'Create user?';
$string['createuser_desc'] = 'If enabled, a new user will be created if fail to find one in LMS.'; $string['createuser_desc'] = 'If enabled, a new user will be created if fail to find one in LMS.';
$string['updateuser'] = 'Update user?'; $string['updateuser'] = 'Update user?';
@ -46,11 +46,11 @@ $string['redirecturl'] = 'Logout redirect URL';
$string['redirecturl_desc'] = 'Optionally you can redirect users to this URL after they logged out from LMS.'; $string['redirecturl_desc'] = 'Optionally you can redirect users to this URL after they logged out from LMS.';
$string['incorrectredirecturl'] = 'You should provide valid URL'; $string['incorrectredirecturl'] = 'You should provide valid URL';
$string['incorrectssourl'] = 'You should provide valid URL'; $string['incorrectssourl'] = 'You should provide valid URL';
$string['jwt:generatekey'] = 'Generate login user key'; $string['jwt:generatekey'] = 'Generate login JWT';
$string['pluginisdisabled'] = 'The jwt authentication plugin is disabled.'; $string['pluginisdisabled'] = 'The jwt authentication plugin is disabled.';
$string['ssourl'] = 'URL of SSO host'; $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['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['redirecterrordetected'] = 'Unsupported redirect to {$a} detected, execution terminated.';
$string['noip'] = 'Unable to fetch IP address of client.'; $string['noip'] = 'Unable to fetch IP address of client.';
$string['privacy:metadata'] = 'User key authentication plugin does not store any personal data.'; $string['privacy:metadata'] = 'JWT authentication plugin does not store any personal data.';
$string['incorrectlogout'] = 'Incorrect logout request'; $string['incorrectlogout'] = 'Incorrect logout request';