aboutsummaryrefslogtreecommitdiff
path: root/src/mod_http_api.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Produce better error for http_api request with extra parametersPaweł Chmielowski2019-01-301-1/+4
|
* Reject request http_api request that have malformed Authentication headerPaweł Chmielowski2019-01-301-11/+13
|
* Allow specifying tag for listener for api_permission purposesPaweł Chmielowski2019-01-301-4/+6
| | | | | | | | | | | | | | | | | | This commit will allow adding tag to http listeners: listener: - port: 4000 - module: ejabberd_http - tag: "magic_listener" that later can be used to have special api_permission just for it: api_permissions: "magic_access": from: - tag: "magic_listener" who: all what: "*"
* Update copyright to 2019 (#2756)Badlop2019-01-081-1/+1
|
* Add code for handling deprecations of get_stacktrace()Paweł Chmielowski2018-12-131-9/+7
|
* Format list of {{name,string}, {value, _}} as json struct name/valPaweł Chmielowski2018-12-031-0/+8
|
* Make mod_http_api assume that missing args of type list are empty listPaweł Chmielowski2018-12-031-4/+9
|
* Don't preprocess arguments, format_args verifies and prepares them (#2629)Badlop2018-10-311-16/+1
|
* Recognize not_exists error in http_apiPaweł Chmielowski2018-10-191-3/+5
|
* Get stacktrace out of lager contextEvgeniy Khramtsov2018-09-011-5/+7
| | | | | Calling erlang:get_stacktrace() inside lager functions produces stacktraces of the logging function itself, not the function which has failed.
* Get rid of ejabberd.hrl headerEvgeniy Khramtsov2018-06-141-1/+0
| | | | | | | | | The header consisted of too many unrelated stuff and macros misuse. Some stuff is moved into scram.hrl and type_compat.hrl. All macros have been replaced with the corresponding function calls. TODO: probably type_compat.hrl is not even needed anymore since we support only Erlang >= OTP 17.5
* Find and fix typos using 'codespell'Evgeniy Khramtsov2018-01-271-2/+2
|
* Introduce new gen_mod callback: mod_options/1Evgeniy Khramtsov2018-01-231-4/+5
| | | | | | | The callback is supposed to provide known options and their default values, as long as the documentation. Passing default values into get_mod functions is now deprecated: all defaults should be provided by the Mod:mod_options/1 callback.
* Update copyright datesEvgeniy Khramtsov2018-01-051-1/+1
|
* Ability to filter passwords from the log in mod_http_api (#1888)Marco Adkins2017-07-271-2/+10
| | | * Ability to filter passwords from the log when creating users through the mod_http_api
* Don't validate an option in gen_mod:get*opt() functionsEvgeniy Khramtsov2017-04-301-3/+1
| | | | | | | | | | | | | | The changes are very similar to those from previous commit: * Now there is no need to pass validating function in gen_mod:get_opt() and gen_mod:get_module_opt() functions, because the modules' configuration keeps already validated values. * New functions gen_mod:get_opt/2 and gen_mod:get_module_opt/3 are introduced. * Functions gen_mod:get_opt/4 and get_module_opt/5 are deprecated. If the functions are still called, the "function" argument is simply ignored. * Validating callback Mod:listen_opt_type/1 is introduced to validate listening options at startup.
* Rename aux.erl as misc.erl17.04Christophe Romain2017-04-111-17/+17
| | | | Thanks Microsoft Windows to not support some filenames
* Deprecate jlib.erl in favor of aux.erlEvgeniy Khramtsov2017-03-301-17/+17
| | | | | Since the main goal of jlib.erl is lost, all auxiliary functions are now moved to aux.erl, and the whole jlib.erl is now deprecated.
* Get rid of jid:to_string/1 and jid:from_string/1Evgeniy Khramtsov2017-02-261-4/+4
|
* Separate list of strings with \n for srg_get_info in mod_http_api (#1500)Badlop2017-02-231-0/+4
|
* Reload modules when reloading configuration fileEvgeniy Khramtsov2017-02-221-1/+5
|
* Make shim for mod_http_api admin_ip_access more robustPaweł Chmielowski2017-01-201-20/+22
|
* Update copyright date automatically (#1442)Badlop2017-01-021-1/+1
|
* API call does not necessary use token, it could use basic authMickael Remond2016-12-081-1/+1
|
* Get rid of compile warningsEvgeniy Khramtsov2016-11-251-2/+2
|
* Make string args in http_api be list stringsPaweł Chmielowski2016-11-151-4/+4
|
* Merge branch 'master' into xml-ngEvgeniy Khramtsov2016-11-121-133/+186
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/adhoc.erl src/cyrsasl_oauth.erl src/ejabberd_c2s.erl src/ejabberd_config.erl src/ejabberd_service.erl src/gen_mod.erl src/mod_admin_extra.erl src/mod_announce.erl src/mod_carboncopy.erl src/mod_client_state.erl src/mod_configure.erl src/mod_echo.erl src/mod_mam.erl src/mod_muc.erl src/mod_muc_room.erl src/mod_offline.erl src/mod_pubsub.erl src/mod_stats.erl src/node_flat_sql.erl src/randoms.erl
| * New api permissions frameworkPaweł Chmielowski2016-10-051-103/+92
| |
| * Fix 404 response formatting (thanks to Kaggggggga)(#1306)Badlop2016-09-281-1/+1
| |
| * Expand parsing of json input to be able to handle update_roster commandPaweł Chmielowski2016-09-131-0/+19
| |
| * Add X-Admin and basic auth header to CORS allowed headers in http_apiPaweł Chmielowski2016-09-121-1/+1
| |
| * Properly process OPTIONS header in http_api for all pathsPaweł Chmielowski2016-09-121-1/+3
| |
| * Improve error message when try to call api on api rootMickael Remond2016-08-011-2/+2
| |
| * Fix HTTP process return formattingMickael Remond2016-08-011-1/+1
| |
| * Improve error handlingMickael Remond2016-07-311-10/+24
| |
| * Add support for sending back missing scope error to API ReST command callsMickael Remond2016-07-301-3/+8
| |
| * Add support for rich error reporting for APIMickael Remond2016-07-301-13/+19
| |
| * Return 409 conflict error code on register if user already existsMickael Remond2016-07-301-16/+18
| |
| * Initial attempt on access on commandsMickael Remond2016-07-251-6/+7
| | | | | | | | May change and will require more work / test / refactor
| * Add support for checking access rules conformance for commandsMickael Remond2016-07-231-0/+1
| |
| * Clean-up of error codes and format json structureMickael Remond2016-07-231-7/+20
| |
| * Fix handling of complex values as arguments in http_apiPaweł Chmielowski2016-07-221-20/+25
| |
| * Add 'ejabberd:user' and 'ejabberd:admin' oauth scopesPablo Polvorin2016-07-191-11/+9
| | | | | | | | | | 'ejabberd:user' includes all commands defined with policy "user". 'ejabberd:admin' includes commands defined with policy "admin".
| * Fix ce0d1704c6cc167c8bc891587952f78c55f979adPablo Polvorin2016-07-181-2/+0
| | | | | | | | | | | | Original request was to allow ejabberd sysadmin to generate tokens for specific users. JIDs must not be passed as argument when requesting the tokens.
* | Deprecate jlib:integer_to_binary/1 and jlib:binary_to_integer/1Evgeniy Khramtsov2016-09-241-1/+1
| |
* | Rewrite several modules to use XML generatorEvgeniy Khramtsov2016-07-291-1/+1
|/
* Make modules loading in a dependent order (#1191)Evgeniy Khramtsov2016-07-061-1/+4
|
* Allow generation of oauth tokens from command line16.06Pablo Polvorin2016-06-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | Oauth tokens can be generated for commands (scopes) having admin|user|open policy. Restricted commands are not available as those are only usable from ejabberdctl command line. Four new commands are available: $ejabberdctl oauth_issue_token "stats;get_roster" Generates a token authorized to call both stats and get_roster commands. Note scopes must be separated by semicolon. $ejabberdctl oauth_list_tokens List tokens generated from the command line, with their scope and expirity time. $ejabberdctl oauth_list_scopes List scopes available $ejabberdctl oauth_revoke_token "Lbs7qdJfdKXOWzVrArgyckY055tE1xnt" Revokes the given token
* Use new access_rules_validator in couple placesPaweł Chmielowski2016-06-211-3/+2
|
* Allow passing username and ip to ejabberd_comamnds, and use it in mod_http_apiPaweł Chmielowski2016-05-261-13/+12
|