Commit Graph

103 Commits

Author SHA1 Message Date
Jerome Mouneyrac 786b831653 MDL-35198 replace key_exists by array_key_exists 2012-09-27 15:34:48 +08:00
Petr Škoda b093fd5e5a MDL-34368 fix another validuntil condition 2012-08-01 15:06:55 +08:00
Nathan Mares 371d354ab3 MDL-34368: Fix broken query in so tokens are correctly checked against the linked service 2012-07-17 19:11:57 +10:00
Jerome Mouneyrac 93ce0e8296 MDL-32581 support additional format field with all text field in extrnal lib function + new possible ws params to decide how format is returned (which are stored in a singleton) 2012-05-31 12:31:27 +08:00
Jerome Mouneyrac 96d3b93ba3 MDL-33060 remove some get_string from exceptions 2012-05-18 14:45:15 +08:00
Jerome Mouneyrac b449d3b7a2 MDL-30225 add some phpdoc mentioning to avoid to use broken get_user_capabilities ws lib function 2012-04-18 14:03:54 +08:00
Jerome Mouneyrac fbf6cfe6fc MDL-30225 Creating new web service tokens create error 2012-04-17 18:08:55 +08:00
Petr Skoda caee6e6c26 MDL-32251 E_STRICT fixes part 3 2012-03-29 15:24:30 +02:00
Jerome Mouneyrac a0a07014c2 MDL-30994 webservice API, check and update DocBlock 2012-03-02 09:49:41 +08:00
Jerome Mouneyrac dcd902a0f6 MDL-30495 HTML5 apps cannot call Webservices functions if a HTTP resource is retrieved from the Moodle installation 2012-02-15 11:33:11 +08:00
Jerome Mouneyrac 07cc3d11e2 MDL-28646 add missing authentication web service checks. Merge download/upload script checks in the same lib functions. Make the download scrit return json error message. Add missing webservice lang. Minor unit test doc improvement. 2011-11-29 11:18:36 +08:00
Sam Hemelryk b28de4b412 Merge branch 'MDL-28629' of git://github.com/mouneyrac/moodle 2011-11-22 18:26:35 +13:00
Jerome Mouneyrac 07a90ec313 MDL-28629 more checks during web service authentication 2011-11-11 15:07:18 +08:00
Aparup Banerjee e88c193fb0 MDL-28670 webservice : added dimming of service name in security keys page if webservice is disabled or not on authorised list to access webservice. 2011-11-07 14:21:40 +08:00
Jerome Mouneyrac 729ca37388 MDL-29825 better debug info when a ws client user misses a protocol capability 2011-10-21 15:11:38 +08:00
Petr Skoda e922fe23b6 MDL-29602 accesslib improvements
Refactoring and improvements of the accesslib.php library including prevention of access for not-logged-in users when forcelogin enabled, improved context caching, OOP refactoring of contexts, fixed context loading, deduplication of role definitions in user sessions, installation improvements, decoupling of enrolment checking from capability loading, added detection of deleted and non-existent users in has_capability(), new function accesslib test, auth and enrol upgrade notes.

More details are available in tracker subtasks.
2011-10-16 14:05:18 +02:00
Jerome Mouneyrac ccda013458 MDL-26635 Return a more explicit debuginfo message when the user can not access the web service function 2011-09-21 13:03:18 +08:00
Adam Olley 936cabd6f0 MDL-28481: Send headers before any possible output 2011-08-22 09:11:42 +09:30
Tim Hunt cc7fb382d7 MDL-20804 Improve the automatically generated WSDL.
Note that this is currently very much a proof-of-concept implementation. It should receive a lot of careful testing and review before we think about integrating it.
2011-07-06 18:53:57 +01:00
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