From 4b4c039fded441c230608d01e5a2fc011718cb4b Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 29 Mar 2017 12:41:27 +0200 Subject: [PATCH] oauth_list_tokens and oauth_revoke_token work only in Mnesia (#1644) --- src/ejabberd_oauth.erl | 8 +++++--- 1 file 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, -- 2.40.0