Forums | Mahara Community
Web services in Mahara 16.04.0
30 May 2017, 9:52 AM
I have this problem. I´ve created a auth plugin with this directory and files structure.
This plugin creates a new type of authentication method and in the services.php file I have defined a services called "mine" with four associated functions from first.php.
The problem is that when I install the plugin, the created service does not appear in the service list of the service management interface. However the authentication method is created succefully.
Anybody know why?
Thanks in advance, Osbel
30 May 2017, 10:48 AM
Take a look at the htdocs/module/lti/lib.php file - there is a save_config_options() function and in it is the setup for a few things relating to the webservice parts of the module.
Firstly it makes sure the webservice provider and related protocols are enabled that the module needs to use and then it calls external_reload_component() that loads the services and functions of the module into the system - and lastly makes sure the services are active.
Hopefully this gives you some help
31 May 2017, 1:05 PM
Has been of great help to me. Many thanks