diff --git a/db/services.php b/db/services.php new file mode 100644 index 0000000..f9c2744 --- /dev/null +++ b/db/services.php @@ -0,0 +1,41 @@ +. + +/** + * 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 + */ + +$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' => 'read', + ) +); + +$services = array( + 'Request login URL Service' => array( + 'functions' => array ('auth_userkey_request_login_url'), + 'restrictedusers' => 0, + 'enabled' => 1, + ) +);