Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gylraj opened this issue Feb 7, 2018 · 1 comment
Open

Comments

@gylraj
Copy link

gylraj commented Feb 7, 2018

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

@badlop
Copy link
Member

badlop commented Feb 7, 2018

Show your client. Show your listen configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants