74 Commits

Author SHA1 Message Date
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
Petr Skoda
01482a4a14 MDL-17135 external token access support 2009-10-26 21:44:53 +00:00
Petr Skoda
b107e64716 MDL-12886 zend based Soap server class 2009-10-24 20:59:59 +00:00
Petr Skoda
c187722c1f MDL-12886 improved zend base class 2009-10-24 16:25:31 +00:00
Petr Skoda
2458e30a86 MDL-12886 zend base class improvements, somebody forgot to update Zend framework, this should help with compativiltiy too 2009-10-24 15:28:01 +00:00
skodak
f0dafb3c85 MDL-12886 refactored ws test client support and other minor tweaks 2009-10-21 18:25:00 +00:00
skodak
c91cc5ef45 MDL-12886 improved access exception 2009-10-20 23:00:57 +00:00
skodak
ca6340bf72 MDL-12886 improved response headers in Zend servers 2009-10-20 22:59:10 +00:00
skodak
e8b216709f MDL-12886 finally proper exception handling for Zend servers outside of the function execution 2009-10-20 22:49:39 +00:00
skodak
5593d2dc36 MDL-12886 refactored function return full external function info and improved reporting of access control problems 2009-10-20 22:30:18 +00:00
skodak
d4e764ab28 MDL-12886 rewritten xmlrpc client, not finished yet - need to solve error sending when exception occures outside of the executed method; the test client needs a lot of refactoring too 2009-10-19 23:14:26 +00:00