aboutsummaryrefslogtreecommitdiff
path: root/include/ejabberd_commands.hrl
diff options
context:
space:
mode:
authorPablo Polvorin <ppolvorin@process-one.net>2016-07-18 23:27:49 -0300
committerPablo Polvorin <ppolvorin@process-one.net>2016-07-19 00:24:06 -0300
commit33e0283f0d4f851d2414a8b42434641ca432031d (patch)
tree4f63744ebf4af989f428f454782034d9a5734796 /include/ejabberd_commands.hrl
parentFix ce0d1704c6cc167c8bc891587952f78c55f979ad (diff)
Add 'ejabberd:user' and 'ejabberd:admin' oauth scopes
'ejabberd:user' includes all commands defined with policy "user". 'ejabberd:admin' includes commands defined with policy "admin".
Diffstat (limited to 'include/ejabberd_commands.hrl')
-rw-r--r--include/ejabberd_commands.hrl2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ejabberd_commands.hrl b/include/ejabberd_commands.hrl
index 81be06dc3..2b4eca581 100644
--- a/include/ejabberd_commands.hrl
+++ b/include/ejabberd_commands.hrl
@@ -26,6 +26,8 @@
{tuple, [rterm()]} | {list, rterm()} |
rescode | restuple.
+-type oauth_scope() :: atom().
+
-record(ejabberd_commands,
{name :: atom(),
tags = [] :: [atom()] | '_' | '$2',