From 96966668142f3763c6f5bfcfd9bc3e7723127ed7 Mon Sep 17 00:00:00 2001 From: Dmitrii Metelkin Date: Wed, 17 Aug 2016 15:05:06 +1000 Subject: [PATCH] Add services file --- db/services.php | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 db/services.php 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, + ) +);