. /** * Web services 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 */ defined('MOODLE_INTERNAL') || die; $functions = array( 'auth_userkey_request_login_url' => array( 'classname' => 'auth_userkey_external', 'methodname' => 'request_login_url', 'classpath' => 'auth/userkey/externallib.php', 'description' => 'Return one time key based login URL', 'type' => 'write', 'capabilities' => 'auth/userkey:generatekey', ) ); $services = array( 'User key authentication web service' => array( 'functions' => array ('auth_userkey_request_login_url'), 'restrictedusers' => 1, 'enabled' => 1, ) );