2016-08-16 04:10:38 +00:00
< ? 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/>.
/**
* Strings for auth_userkey .
*
* @ package auth_userkey
* @ copyright 2016 Dmitrii Metelkin ( dmitriim @ catalyst - au . net )
* @ license http :// www . gnu . org / copyleft / gpl . html GNU GPL v3 or later
*/
2018-01-29 00:17:54 +00:00
defined ( 'MOODLE_INTERNAL' ) || die ;
2016-08-16 04:10:38 +00:00
$string [ 'pluginname' ] = 'User key authentication' ;
2016-08-19 06:46:19 +00:00
$string [ 'auth_userkeydescription' ] = 'Log in to Moodle using one time user key.' ;
2016-08-18 04:43:57 +00:00
$string [ 'mappingfield' ] = 'Mapping field' ;
$string [ 'mappingfield_desc' ] = 'This user field will be used to find relevant user in the LMS.' ;
$string [ 'iprestriction' ] = 'IP restriction' ;
2016-08-19 06:46:19 +00:00
$string [ 'iprestriction_desc' ] = ' If enabled , a web call has to contain " ip " parameter when requesting login URL .
A user has to have provided IP to be able to use a key to login to LMS . ' ;
2017-10-03 10:05:40 +00:00
$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.
\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 " ;
2016-08-18 04:43:57 +00:00
$string [ 'keylifetime' ] = 'User key life time' ;
$string [ 'keylifetime_desc' ] = 'Life time in seconds of the each user login key.' ;
2016-08-19 00:53:36 +00:00
$string [ 'incorrectkeylifetime' ] = 'User key life time should be a number' ;
2017-03-31 10:41:33 +00:00
$string [ 'createuser' ] = 'Create user?' ;
2016-08-18 04:43:57 +00:00
$string [ 'createuser_desc' ] = 'If enabled, a new user will be created if fail to find one in LMS.' ;
2017-03-31 10:41:33 +00:00
$string [ 'updateuser' ] = 'Update user?' ;
$string [ 'updateuser_desc' ] = 'If enabled, users will be updated with the properties supplied when the webservice is called.' ;
2016-08-19 00:49:38 +00:00
$string [ 'redirecturl' ] = 'Logout redirect URL' ;
$string [ 'redirecturl_desc' ] = 'Optionally you can redirect users to this URL after they logged out from LMS.' ;
$string [ 'incorrectredirecturl' ] = 'You should provide valid URL' ;
2016-09-26 00:40:21 +00:00
$string [ 'incorrectssourl' ] = 'You should provide valid URL' ;
2016-08-18 11:49:27 +00:00
$string [ 'userkey:generatekey' ] = 'Generate login user key' ;
2016-09-19 01:05:44 +00:00
$string [ 'pluginisdisabled' ] = 'The userkey authentication plugin is disabled.' ;
$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' ;
2016-09-26 01:48:14 +00:00
$string [ 'redirecterrordetected' ] = 'Unsupported redirect to {$a} detected, execution terminated.' ;
2017-03-31 10:41:33 +00:00
$string [ 'noip' ] = 'Unable to fetch IP address of client.' ;
2020-05-08 05:22:02 +00:00
$string [ 'privacy:metadata' ] = 'User key authentication plugin does not store any personal data.' ;