Paul Holden
d4bd398ad7
MDL-73295 webservice: only pass around sesskey for tokens as needed.
2021-12-29 09:54:23 +00:00
sam marshall
611e2569aa
MDL-71215 core_user: User fields - remaining deprecated functions
...
This change removes references in code and comments to a few
deprecated functions that were accidentally missed in the larger
change.
The code changes only affect service_users.php. I made it support
custom user profile fields in this query, because it was easy
enough, rather than adding another TODO to fix later.
2021-03-31 11:12:16 +01:00
David Mudrák
2c177ae4c1
MDL-67748 admin: Refactor tokens management as an external page
...
No need to have a dedicated admin_setting_managewebservicetokens admin
setting subclass, and yet do not use almost any of its features. So the
patch merges the list and the forms handling into a single external
page.
Similarly, it feels like overkill to have a renderer method for a
simple confirmation widget - especially given that the URLs were
hard-coded in it. So that one was dropped.
2021-03-15 21:24:06 +01:00
David Mudrák
596b0bb23e
MDL-67748 admin: Improve the display of missing capabilities
...
The patch improves the display of the missing capabilities on the Manage
tokens page and the Select authorised users page. The list of
capabilities is rendered in a collapsible area and does not occupy too
much space by default.
Additionally on the later page, the patch improves the display of the
list of existing authorised users so that it respects the configured
identity fields.
2021-03-15 21:24:06 +01:00
Paul Holden
7455b741c9
MDL-66762 user: escape extra/email user fields.
2019-11-07 09:00:19 +08:00
Ankit Agarwal
9d72acb7ed
MDL-56634 webservices: Remove script from api desc and clean desc printing
2016-11-02 10:06:05 +05:30
Cameron Ball
f23e9b6ba4
MDL-49414 webservices: Remove deprecated functions
2016-04-27 15:54:38 +08:00
Damyon Wiese
11c16f5fc8
MDL-53772 externallib: Deprecate external_function_info()
2016-04-14 15:07:41 +08:00
Damyon Wiese
5d8c198711
MDL-50782 Ajax: No require_login for all ajax webservice calls
...
Some webservice functions need to be available without a login, e.g.
fetching strings and templates.
External functions must call validate_context if they require a valid login etc.
Added a new parameter to services.php: "loginrequired". Default is true.
2015-09-08 09:16:58 +08:00
Damyon Wiese
72f8324ec5
MDL-49163 Webservices, AJAX: Add support for a new ajax webservice handler.
...
This is a new script that can call any function in the built-in AJAX webservice. This is
a new system service that is added at install time (like the mobile webservice). It has no
protocols added to it, but it accessible by a new ajax script /lib/ajax/service.php.
Requests and responses to the script are required to be in json format, and multiple functions can
be called in a single request.
2015-03-12 15:07:08 +08:00
David Monllao
3c1aa6fdfb
MDL-43535 webservices: Marking functions as deprecated
...
Also:
- We don't allow users to add deprecated functions to WS
- We show a debugging message when deprecated functions
are already being used in web services.
2015-02-09 05:42:22 +08:00
Brian Barnes
e45d9cd9bc
MDL-48359 webservices: Removed table from documentation page
2014-11-25 13:24:04 +13:00
Jerome Mouneyrac
2af34ab005
MDL-31193 display the correct and translated token valid until date
2013-05-03 14:09:34 +08:00
Jerome Mouneyrac
a0a07014c2
MDL-30994 webservice API, check and update DocBlock
2012-03-02 09:49:41 +08:00
Nadav Kavalerchik
7a25d39873
MDL-27516 Several CSS fixes for right to left languages
2011-11-17 11:42:12 +13:00
Aparup Banerjee
8887601196
MDL-28670 webservice : (review) changes improving performance
2011-11-14 11:25:36 +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
cde291ed73
MDL-28650 add a page in the administration to the full web service API (API documentation).
2011-08-18 11:51:02 +08:00
Aparup Banerjee
728ebac7f2
MDL-28135 general Updating all hardcoded "docs.moodle.org/en/Development:" type doc links to "docs.moodle.org/dev/"
2011-07-05 14:27:31 +08:00
jerome mouneyrac
8abfe38321
webservice MDL-24758 ws doc better looking on chrome + print default value for array/object
2010-10-29 03:51:03 +00:00
Petr Skoda
252708c64d
fixed coding style
2010-10-08 08:51:22 +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
jerome mouneyrac
de55d4695e
webservice MDL-24230 fix /admin/ into $CFG->admin + /lib/ into $CFG->libdir
2010-09-24 02:45:39 +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
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
1d2a1936c5
webservice MDL-23341 function list page: display "no functions" message, a better title, and fix a css typo
2010-07-23 06:54:59 +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
jerome mouneyrac
390cc887da
webservice MDL-23345 fix moodledocs link in the ws doc
2010-07-20 03:22:55 +00:00
jerome mouneyrac
86dcc6f0a2
webservice MDL-21792 refactor webservice authorised users pages
2010-07-02 06:40:36 +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
Petr Skoda
26acc814eb
MDL-20204 fixed html-writer::tag() parameter order to match the rest of the api
2010-02-18 18:15:56 +00:00
Petr Skoda
916276fc0a
MDL-20204 more outputlib changes towards separate html_writer
2010-02-07 20:12:31 +00:00
jerome mouneyrac
4b2023df41
webservice MDL-21510 added three defines for the description of ws optional value:
...
VALUE_REQUIRED - if the parameter is not supplied, there is an error
VALUE_OPTIONAL - if the parameter is not supplied, then the param has no value
VALUE_DEFAULT - if the parameter is not supplied, then the default value is used
(quick fix on default null value)
2010-02-05 03:04:02 +00:00
jerome mouneyrac
382b9ceab3
webservice MDL-21510 added three defines for the description of ws optional value:
...
VALUE_REQUIRED - if the parameter is not supplied, there is an error
VALUE_OPTIONAL - if the parameter is not supplied, then the param has no value
VALUE_DEFAULT - if the parameter is not supplied, then the default value is used
2010-02-05 02:58:24 +00:00
jerome mouneyrac
85b4c44745
webservice MDL-20803 add token authentication to web service documentation generator
2010-01-29 06:34:07 +00:00
Petr Skoda
a685593466
MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions
2010-01-16 15:39:56 +00:00
Petr Skoda
5d0c95a5ac
MDL-21235 towards the final outputlib api - implementing separate html writer and implementing new render() method
2010-01-13 17:13:52 +00:00
Petr Skoda
5c2ed7e215
MDL-21198 $OUTPUT->single_button() resurrection, hopefully much easier to use than $OUTPUT->button(); fixed some regressions and code style improvements
2010-01-03 15:46:14 +00:00
jerome mouneyrac
f03bff3e2f
webservice MDL-20803 fix printed documentation (collapsible javascript broke the printed pages)
2009-12-22 07:26:20 +00:00
jerome mouneyrac
cdb0bd6afc
webservice MDL-20803 add "Print All" button
2009-12-22 03:52:28 +00:00
jerome mouneyrac
334f9dbb7a
webservice MDL-20803 add some comments to the code
2009-12-21 08:08:22 +00:00
jerome mouneyrac
4597fd4d61
webservice MDL-20803 replace all html tag display by output tag functions
2009-12-21 07:37:54 +00:00
jerome mouneyrac
7886efc41e
webservice MDL-20803 add switch to disable documentation, fix renderer call on login page, fix xhtml strict, add css file. TODO: use output render function to display tag, move all css style into the css file
2009-12-21 04:01:02 +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
c927e35c48
MDL-21148 geenral support for rendering targets, this should give us more flexibility; please propose improvements in the tracker if necessary, thanks
2009-12-17 22:43:27 +00:00
Petr Skoda
755909352c
MDL-21148 preparation for new target parameter in get_renderer()
2009-12-17 14:51:36 +00:00
Petr Skoda
649cf95d0b
MDL-21147 renamed find_renderer back to get_renderer() - there are no more collisions with those magic getters
2009-12-17 14:06:22 +00:00
Petr Skoda
56cbc53b76
MDL-21143 theme renderers related refactoring, it should detect more problems now, there is also a list of core renderer subtypes, hopefully the api changes are improvements
2009-12-17 13:45:54 +00:00