diff options
author | Badlop <badlop@process-one.net> | 2017-03-29 12:41:27 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2017-03-29 12:41:27 +0200 |
commit | 4b4c039fded441c230608d01e5a2fc011718cb4b (patch) | |
tree | e0736c6c1d14831f2dcd6293d9e91166c05a9571 | |
parent | Fix a typo (diff) |
oauth_list_tokens and oauth_revoke_token work only in Mnesia (#1644)
-rw-r--r-- | src/ejabberd_oauth.erl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ejabberd_oauth.erl b/src/ejabberd_oauth.erl index cc8af85b5..3a0b276d1 100644 --- a/src/ejabberd_oauth.erl +++ b/src/ejabberd_oauth.erl @@ -83,21 +83,23 @@ get_commands_spec() -> result = {result, {tuple, [{token, string}, {scopes, string}, {expires_in, string}]}} }, #ejabberd_commands{name = oauth_list_tokens, tags = [oauth], - desc = "List oauth tokens, their user and scope, and how many seconds remain until expirity", + desc = "List oauth tokens, user, scope, and seconds to expire (only Mnesia)", + longdesc = "List oauth tokens, their user and scope, and how many seconds remain until expirity", module = ?MODULE, function = oauth_list_tokens, args = [], policy = restricted, result = {tokens, {list, {token, {tuple, [{token, string}, {user, string}, {scope, string}, {expires_in, string}]}}}} }, #ejabberd_commands{name = oauth_list_scopes, tags = [oauth], - desc = "List scopes that can be granted to tokens generated through the command line, together with the commands they allow", + desc = "List scopes that can be granted, and commands", + longdesc = "List scopes that can be granted to tokens generated through the command line, together with the commands they allow", module = ?MODULE, function = oauth_list_scopes, args = [], policy = restricted, result = {scopes, {list, {scope, {tuple, [{scope, string}, {commands, string}]}}}} }, #ejabberd_commands{name = oauth_revoke_token, tags = [oauth], - desc = "Revoke authorization for a token", + desc = "Revoke authorization for a token (only Mnesia)", module = ?MODULE, function = oauth_revoke_token, args = [{token, string}], policy = restricted, |