ejabberd-contrib icon indicating copy to clipboard operation
ejabberd-contrib copied to clipboard

AccessRules: Account does not have the right to perform the operation.

Open gylraj opened this issue 7 years ago • 1 comments
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

gylraj avatar Feb 07 '18 11:02 gylraj

Show your client. Show your listen configuration

badlop avatar Feb 07 '18 11:02 badlop