summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobby Raschke <robby.raschke@erlang-solutions.com>2015-09-30 11:41:02 +0200
committerRobby Raschke <robby.raschke@erlang-solutions.com>2015-09-30 11:41:02 +0200
commit255a4951e0bc9a486d11044dacf8b0ecdac79ffb (patch)
treeb21b05dc65603a57e44b998ab04344da8f6a50dc /src
parent0f8947bebed309cff647a8ae566ef9f8ccf6fd5b (diff)
downloadrabbitmq-server-git-255a4951e0bc9a486d11044dacf8b0ecdac79ffb.tar.gz
Add the return tags element into the behaviour callback spec for authorization backends.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_authz_backend.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_authz_backend.erl b/src/rabbit_authz_backend.erl
index 12364b654b..0c97b2047c 100644
--- a/src/rabbit_authz_backend.erl
+++ b/src/rabbit_authz_backend.erl
@@ -28,14 +28,14 @@
%% check_resource_access/3.
%%
%% Possible responses:
-%% {ok, Impl}
-%% User authorisation succeeded, and here's the impl field.
+%% {ok, Impl, Tags}
+%% User authorisation succeeded, and here's the impl and extra tags fields.
%% {error, Error}
%% Something went wrong. Log and die.
%% {refused, Msg, Args}
%% User authorisation failed. Log and die.
-callback user_login_authorization(rabbit_types:username()) ->
- {'ok', any()} |
+ {'ok', any(), any()} |
{'refused', string(), [any()]} |
{'error', any()}.