MDL-65547 tool_mobile: New WS for generating tokens with qr login keys

This commit is contained in:
Juan Leyva 2020-04-14 21:17:43 +02:00
parent 9df5151013
commit 118852a710
4 changed files with 235 additions and 2 deletions

View file

@ -78,5 +78,14 @@ $functions = array(
'type' => 'write',
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
),
);
'tool_mobile_get_tokens_for_qr_login' => array(
'classname' => 'tool_mobile\external',
'methodname' => 'get_tokens_for_qr_login',
'description' => 'Returns a WebService token (and private token) for QR login.',
'type' => 'read',
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
'ajax' => true,
'loginrequired' => false,
),
);