ejabberd-contrib
ejabberd-contrib copied to clipboard
AccessRules: Account does not have the right to perform the operation.
trafficstars
ejabberd-17.01
http://localhost:5285/api/send_stanza_c2s
X-Admin:true
Authorization:Bearer xELjmMShuKhuESTx3hxzyFO2csrYCPA8
{
"status": "error",
"code": 32,
"message": "AccessRules: Account does not have the right to perform the operation."
}
ejabberd.yml
oauth_access: all
api_permissions:
"admin access":
who: all
what:
- "*"
- "!stop"
- "!start"
commands_admin_access: configure
commands:
add_commands:
- status
- registered_users
- register
- unregister
- get_roster
- connected_users
- send_stanza_c2s
oauth_expire: 3600
oauth_access: all
-
port: 5285
ip: "0.0.0.0"
module: ejabberd_http
request_handlers:
"/oauth": ejabberd_oauth
"/api": mod_http_api
PS: /api/register is working
Show your client. Show your listen configuration