-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
API permissions for specific host #3416
Comments
Nothing here? /LE: https://docs.ejabberd.im/developer/ejabberd-api/permissions/#title |
@licaon-kter I tested ACLs but this doesn't work for me with API. |
I want something like that: I have 3 hosts a.tld, b.tld and c.tld. When I run API command from account on b.tld I want to allow to run command only for this host. E.g. "register user123 b.tld pass" will be allowed but "register user123 a.tld pass" will be forbidden. |
I've edited my post, did you see? |
Yes, this rules doesn't work as I described. |
That's not possible currently, we don't have mechanisms to limit arguments that are allowed to be passed to api command (where host is being one of them), right now you can allow/deny access to command, there is no more granular parameters to tweak. |
I looking a way to set specific API permissions for one host. For now e.g. "register" "check_account" "unregister" commands works with all hosts that I have and I don't found way to allow it to run only for specific host. Is it possible?
The text was updated successfully, but these errors were encountered: