diff options
author | kaniini <nenolod@gmail.com> | 2018-12-19 00:12:39 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2018-12-19 00:12:39 +0000 |
commit | f98ee9402fcafff362ab2446f386214d7a5c41c7 (patch) | |
tree | e7a93a0440d613d8e8dcf2cd5173bc9c824884c2 /config | |
parent | a3da8a56b6a49be273e47026badfcd1c100abd6a (diff) | |
parent | f3eb414e282dd0e3bd5c60838e45c69cf21541e4 (diff) | |
download | pleroma-f98ee9402fcafff362ab2446f386214d7a5c41c7.tar.gz pleroma-f98ee9402fcafff362ab2446f386214d7a5c41c7.zip |
Merge branch 'userless-admin' into 'develop'
Add a way to use the admin api without a user.
See merge request pleroma/pleroma!576
Diffstat (limited to 'config')
-rw-r--r-- | config/config.md | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/config/config.md b/config/config.md index edabd6e0f..63c895753 100644 --- a/config/config.md +++ b/config/config.md @@ -174,4 +174,17 @@ Kocaptcha is a very simple captcha service with a single API endpoint, the source code is here: https://github.com/koto-bank/kocaptcha. The default endpoint `https://captcha.kotobank.ch` is hosted by the developer. -* `endpoint`: the kocaptcha endpoint to use
\ No newline at end of file +* `endpoint`: the kocaptcha endpoint to use + +## :admin_token + +Allows to set a token that can be used to authenticate with the admin api without using an actual user by giving it as the 'admin_token' parameter. Example: + +``` +config :pleroma, :admin_token, "somerandomtoken" +``` + +You can then do +``` +curl "http://localhost:4000/api/pleroma/admin/invite_token?admin_token=somerandomtoken" +``` |