Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Produce better error for http_api request with extra parameters | Paweł Chmielowski | 2019-01-30 | 1 | -1/+4 |
| | |||||
* | Reject request http_api request that have malformed Authentication header | Paweł Chmielowski | 2019-01-30 | 1 | -11/+13 |
| | |||||
* | Allow specifying tag for listener for api_permission purposes | Paweł Chmielowski | 2019-01-30 | 1 | -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) | Badlop | 2019-01-08 | 1 | -1/+1 |
| | |||||
* | Add code for handling deprecations of get_stacktrace() | Paweł Chmielowski | 2018-12-13 | 1 | -9/+7 |
| | |||||
* | Format list of {{name,string}, {value, _}} as json struct name/val | Paweł Chmielowski | 2018-12-03 | 1 | -0/+8 |
| | |||||
* | Make mod_http_api assume that missing args of type list are empty list | Paweł Chmielowski | 2018-12-03 | 1 | -4/+9 |
| | |||||
* | Don't preprocess arguments, format_args verifies and prepares them (#2629) | Badlop | 2018-10-31 | 1 | -16/+1 |
| | |||||
* | Recognize not_exists error in http_api | Paweł Chmielowski | 2018-10-19 | 1 | -3/+5 |
| | |||||
* | Get stacktrace out of lager context | Evgeniy Khramtsov | 2018-09-01 | 1 | -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 header | Evgeniy Khramtsov | 2018-06-14 | 1 | -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 Khramtsov | 2018-01-27 | 1 | -2/+2 |
| | |||||
* | Introduce new gen_mod callback: mod_options/1 | Evgeniy Khramtsov | 2018-01-23 | 1 | -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 dates | Evgeniy Khramtsov | 2018-01-05 | 1 | -1/+1 |
| | |||||
* | Ability to filter passwords from the log in mod_http_api (#1888) | Marco Adkins | 2017-07-27 | 1 | -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() functions | Evgeniy Khramtsov | 2017-04-30 | 1 | -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.04 | Christophe Romain | 2017-04-11 | 1 | -17/+17 |
| | | | | Thanks Microsoft Windows to not support some filenames | ||||
* | Deprecate jlib.erl in favor of aux.erl | Evgeniy Khramtsov | 2017-03-30 | 1 | -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/1 | Evgeniy Khramtsov | 2017-02-26 | 1 | -4/+4 |
| | |||||
* | Separate list of strings with \n for srg_get_info in mod_http_api (#1500) | Badlop | 2017-02-23 | 1 | -0/+4 |
| | |||||
* | Reload modules when reloading configuration file | Evgeniy Khramtsov | 2017-02-22 | 1 | -1/+5 |
| | |||||
* | Make shim for mod_http_api admin_ip_access more robust | Paweł Chmielowski | 2017-01-20 | 1 | -20/+22 |
| | |||||
* | Update copyright date automatically (#1442) | Badlop | 2017-01-02 | 1 | -1/+1 |
| | |||||
* | API call does not necessary use token, it could use basic auth | Mickael Remond | 2016-12-08 | 1 | -1/+1 |
| | |||||
* | Get rid of compile warnings | Evgeniy Khramtsov | 2016-11-25 | 1 | -2/+2 |
| | |||||
* | Make string args in http_api be list strings | Paweł Chmielowski | 2016-11-15 | 1 | -4/+4 |
| | |||||
* | Merge branch 'master' into xml-ng | Evgeniy Khramtsov | 2016-11-12 | 1 | -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 framework | Paweł Chmielowski | 2016-10-05 | 1 | -103/+92 |
| | | |||||
| * | Fix 404 response formatting (thanks to Kaggggggga)(#1306) | Badlop | 2016-09-28 | 1 | -1/+1 |
| | | |||||
| * | Expand parsing of json input to be able to handle update_roster command | Paweł Chmielowski | 2016-09-13 | 1 | -0/+19 |
| | | |||||
| * | Add X-Admin and basic auth header to CORS allowed headers in http_api | Paweł Chmielowski | 2016-09-12 | 1 | -1/+1 |
| | | |||||
| * | Properly process OPTIONS header in http_api for all paths | Paweł Chmielowski | 2016-09-12 | 1 | -1/+3 |
| | | |||||
| * | Improve error message when try to call api on api root | Mickael Remond | 2016-08-01 | 1 | -2/+2 |
| | | |||||
| * | Fix HTTP process return formatting | Mickael Remond | 2016-08-01 | 1 | -1/+1 |
| | | |||||
| * | Improve error handling | Mickael Remond | 2016-07-31 | 1 | -10/+24 |
| | | |||||
| * | Add support for sending back missing scope error to API ReST command calls | Mickael Remond | 2016-07-30 | 1 | -3/+8 |
| | | |||||
| * | Add support for rich error reporting for API | Mickael Remond | 2016-07-30 | 1 | -13/+19 |
| | | |||||
| * | Return 409 conflict error code on register if user already exists | Mickael Remond | 2016-07-30 | 1 | -16/+18 |
| | | |||||
| * | Initial attempt on access on commands | Mickael Remond | 2016-07-25 | 1 | -6/+7 |
| | | | | | | | | May change and will require more work / test / refactor | ||||
| * | Add support for checking access rules conformance for commands | Mickael Remond | 2016-07-23 | 1 | -0/+1 |
| | | |||||
| * | Clean-up of error codes and format json structure | Mickael Remond | 2016-07-23 | 1 | -7/+20 |
| | | |||||
| * | Fix handling of complex values as arguments in http_api | Paweł Chmielowski | 2016-07-22 | 1 | -20/+25 |
| | | |||||
| * | Add 'ejabberd:user' and 'ejabberd:admin' oauth scopes | Pablo Polvorin | 2016-07-19 | 1 | -11/+9 |
| | | | | | | | | | | 'ejabberd:user' includes all commands defined with policy "user". 'ejabberd:admin' includes commands defined with policy "admin". | ||||
| * | Fix ce0d1704c6cc167c8bc891587952f78c55f979ad | Pablo Polvorin | 2016-07-18 | 1 | -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/1 | Evgeniy Khramtsov | 2016-09-24 | 1 | -1/+1 |
| | | |||||
* | | Rewrite several modules to use XML generator | Evgeniy Khramtsov | 2016-07-29 | 1 | -1/+1 |
|/ | |||||
* | Make modules loading in a dependent order (#1191) | Evgeniy Khramtsov | 2016-07-06 | 1 | -1/+4 |
| | |||||
* | Allow generation of oauth tokens from command line16.06 | Pablo Polvorin | 2016-06-29 | 1 | -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 places | Paweł Chmielowski | 2016-06-21 | 1 | -3/+2 |
| | |||||
* | Allow passing username and ip to ejabberd_comamnds, and use it in mod_http_api | Paweł Chmielowski | 2016-05-26 | 1 | -13/+12 |
| |