84 Commits

Author SHA1 Message Date
Dongsheng Cai
8819c47b64 MDL-28121, fixed deprecated split() function 2011-06-30 17:34:36 +08:00
Sam Hemelryk
00a33dcbac Merged branch 'MDL-26777-wip' of git://github.com/mouneyrac/moodle.git 2011-06-08 17:52:59 +08:00
Jerome Mouneyrac
c1b658832d MDL-27551 add enable mobile feature (enable web services + mobile service - add mobile builtin service - add unique shortname for service) 2011-06-08 15:10:26 +08:00
Jerome Mouneyrac
0bf486a619 MDL-26777 moodle_webservice_mobile_get_siteinfo TODO: add this service name into the service of MDL-27551 2011-06-07 15:19:53 +08:00
jerome mouneyrac
820b42c57b webservice MDL-25323 clean get_ws_authorised_usersget_ws_authorised_users from obsolete code 2010-11-23 09:16:34 +00:00
David Mudrak
136e69c40f MDL-24767 webservices logs use hard coded site id 1 instead of SITEID 2010-10-19 15:26:24 +00:00
Petr Skoda
346c5887b1 MDL-24751 using new memory constants 2010-10-19 10:13:15 +00:00
jerome mouneyrac
9ef728d660 webservice MDL-24541 change wsdoc.php external authentication into a normal moodle page with require_login(), no form, documentation directly related to the token and display from the user security keys page (see MDL for more information) 2010-10-08 03:03:10 +00:00
Petr Skoda
7a424cc4f2 MDL-24321 switching to stdClass in /webservice/ 2010-09-21 08:28:15 +00:00
Petr Skoda
fc0fcb27e2 fixed created timestamp 2010-09-17 20:07:49 +00:00
jerome mouneyrac
c25662b0e4 web service MDL-23338 clean up Service editing page + delete token related to a service when delete service (display warning on confirmation page) + fix glitch on the navigation with 'Register your site' and 'Edit service' pages (they are now hidden and the parent page link is displayed) 2010-09-16 04:21:52 +00:00
Petr Skoda
c924a469a6 MDL-23927 do not use = 'guest' because we have CFG->siteguest AND it matches any other username with accents and different case 2010-08-25 08:30:52 +00:00
jerome mouneyrac
b2cde2cb78 webservice MDL-23539 fix missing capabilities information 2010-07-27 07:29:02 +00:00
jerome mouneyrac
9c954e883b webservice MDL-21908 admin: use renderer into token pages + a bit of code cleaning 2010-07-27 03:53:55 +00:00
jerome mouneyrac
72f68b51e6 webservice MDL-23341 add required capabilities to the service function declaration (lib/services.php), display missing capaibilities for users linked to a token and for authorised users, display function capabilities, refactor service add function page 2010-07-23 06:17:06 +00:00
Jonathan Harker
7785dc2e9f lib, auth, webservice: MDL-20876 fix deprecated split() calls. 2010-07-20 01:38:54 +00:00
jerome mouneyrac
fde884c342 webservice MDL-23083 change $param => $paramanddefault (for multiple/single structure VALUE_DEFAULT) 2010-07-14 05:42:21 +00:00
Jamie Pratt
b437f681f9 MDL-20808 Fixing default param handling. 2010-07-12 13:01:56 +00:00
jerome mouneyrac
d6cae0311a webservice MDL-20808 removing managing default from service_class_method_body() 2010-07-12 10:51:26 +00:00
jerome mouneyrac
02998b3f63 webservice MDL-23083 web service function generated code included default value assignement everytime a parameter was printed, causing error all over. Fixed. 2010-07-12 07:06:08 +00:00
jerome mouneyrac
c06503b83a webservice MDL-23083 Zend now cast object into array before calling the external function. 2010-07-09 04:07:37 +00:00
jerome mouneyrac
d9ad010327 webservice MDL-22589 support user preferences for creation and update 2010-07-08 08:40:21 +00:00
jerome mouneyrac
774b1b0ff0 webservice MDL-23144 support VALUE_DEFAULT empty array for single and multiple structure 2010-07-07 08:15:26 +00:00
jerome mouneyrac
e93b82d746 webservice MDL-23083 Zend SOAP does not support struct in the phpdoc 2010-07-05 08:51:57 +00:00
jerome mouneyrac
2d5a051e14 webservice MDL-23077 fix execute ws function when the return value is null 2010-07-05 06:04:47 +00:00
jerome mouneyrac
86dcc6f0a2 webservice MDL-21792 refactor webservice authorised users pages 2010-07-02 06:40:36 +00:00
jerome mouneyrac
bb98a5b25e webservice MDL-12886 add function to retrieve token row by token (must be unique) 2010-06-03 09:16:00 +00:00
jerome mouneyrac
ad8b5ba212 webservice MDL-21579 $this->simple is now a DEFINE. Fix the forgotten ones. 2010-05-25 03:41:24 +00:00
jerome mouneyrac
229a70996a security keysMDL-12886 cleanup a bit the security keys page (move html into renderer and DB query into library) 2010-05-12 07:53:07 +00:00
jerome mouneyrac
0f1e391487 webservice MDL-21579 fix wrong define usage: EXTERNAL_TOKEN_EMBEDDED => WEBSERVICE_AUTHMETHOD_SESSION_TOKEN 2010-04-30 06:37:43 +00:00
Jamie Pratt
2d0acbd5f9 MDL-21579 "Implement session token for embedded application" implemented a second type of session token linked to a session for use in applications embedded in web pages. 2010-04-28 13:16:58 +00:00
jerome mouneyrac
a8dd0325b9 web service MDL-21999 web service support optional parameter now (not only optional array/object key) 2010-04-01 03:17:34 +00:00
jerome mouneyrac
99152d09e3 web service MDL-21964 return null when the return description is null. 2010-03-29 06:48:17 +00:00
jerome mouneyrac
d07ff72d15 webservice MDL-21580 remove reponse hook, add response cleaning to the method body for all Zend servers. 2010-02-22 07:07:44 +00:00
jerome mouneyrac
eae18ab60c webservice MDL-21580 remove hard coded string from validate_parameters function, clean XML-RPC response from additional values, XML-RPC return an exception if a return value is wrong 2010-02-19 02:40:10 +00:00
Jamie Pratt
c77e75a3cd MDL-20808 Fixes for amf web services and test client - a web service browser.
Fixed the bugs that Jerome mentions in the comments for this issue :

* No exception thrown when there is no return value now.
* No exception thrown when there are extra keys in the return value that are not in the description. Now the extra keys are ignored and not returned which is what the other web services do.
* Improved information about exceptions in the test client.
2010-02-11 03:39:02 +00:00
Jamie Pratt
94a9b9e770 MDL-20808 Fixes for amf web services and test client - a web service browser.
Includes :

MDL-21552 amf web services need to accept params and return values of proper type

MDL-21553 amf web service : In Flash an array has normally a numeri
2010-02-10 08:44:46 +00:00
jerome mouneyrac
1839e2f094 webservice MDL-17135 do not check if ws authentication plugin is enabled for the ws token method, it is only useful for username/password method. 2010-02-01 03:38:28 +00:00
jerome mouneyrac
b0a9a0cd35 mnet MDL-21466 change "WS auth not enable" for "Web Service Authentication plugin is disabled" message + add hard coded ws error message string into lang file. 2010-01-29 02:15:22 +00:00
jerome mouneyrac
7e0eac79da webservice MDL-21127 add IP address for every web service logs. 2010-01-25 02:53:03 +00:00
jerome mouneyrac
1e29fe3f35 webservice MDL-21127 add log for Zend server and when authentication (token or simple) failed and when the IP checking failed too. 2010-01-25 02:45:56 +00:00
jerome mouneyrac
c3517f05ed webservice MDL-21127 add logging for REST server 2010-01-22 08:21:08 +00:00
jerome mouneyrac
3785c9e221 webservice MDL-21351 token error message more explicit 2010-01-18 07:41:53 +00:00
jerome mouneyrac
b8c5309e7d webservice MDL-20805 fix token authentication 2010-01-14 08:17:00 +00:00
jerome mouneyrac
4ba8df5c1c webservice MDL-20805 fix validuntil checking (token invalid when xxx < time ()) 2010-01-13 09:11:23 +00:00
jerome mouneyrac
abf7dc44a2 webservice MDL-20803 auto-doc: added protocol checking, removed IP checking, removed all $USER reference, remove DEBUG call. TODO: split the code between login and documentation display, add switch to disable documentation, remove all html from the renderer using output function (create empty tag, create box, ... + css), fix xhtml strict 2009-12-18 03:19:22 +00:00
Petr Skoda
fd8ad93868 MDL-12886 fixed TODOs 2009-11-10 09:34:40 +00:00
Petr Skoda
4a355d1834 MDL-12886 added missing token restriction 2009-11-10 09:31:52 +00:00
Petr Skoda
3f5995886a improved docs 2009-11-10 09:06:42 +00:00
Petr Skoda
3086dd5964 MDL-20699 fixed ws protocol servers to use new abort transactiosn function 2009-11-01 10:07:58 +00:00