]> granicus.if.org Git - ejabberd/commitdiff
oauth_list_tokens and oauth_revoke_token work only in Mnesia (#1644)
authorBadlop <badlop@process-one.net>
Wed, 29 Mar 2017 10:41:27 +0000 (12:41 +0200)
committerBadlop <badlop@process-one.net>
Wed, 29 Mar 2017 10:41:27 +0000 (12:41 +0200)
src/ejabberd_oauth.erl

index cc8af85b52e9f1a43d67cc5fd34e51f28bd3543a..3a0b276d1661328ae63e505020afd06d234e2e5b 100644 (file)
@@ -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,