summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobby Raschke <robby.raschke@erlang-solutions.com>2015-10-05 18:13:22 +0200
committerRobby Raschke <robby.raschke@erlang-solutions.com>2015-10-05 18:13:22 +0200
commitafe6a0e9c6350a7fb622a8a9b06f7b70a612fbf0 (patch)
tree420343f22d7e62ebbc4c787ae490c19aa59d8ce4 /src
parent32281bd205c20e3eca82077416dbd553a7e1733a (diff)
downloadrabbitmq-server-git-afe6a0e9c6350a7fb622a8a9b06f7b70a612fbf0.tar.gz
Have the callback spec be backwards compatible.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_authz_backend.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rabbit_authz_backend.erl b/src/rabbit_authz_backend.erl
index 0c97b2047c..495a79695d 100644
--- a/src/rabbit_authz_backend.erl
+++ b/src/rabbit_authz_backend.erl
@@ -28,13 +28,15 @@
%% check_resource_access/3.
%%
%% Possible responses:
+%% {ok, Impl}
%% {ok, Impl, Tags}
-%% User authorisation succeeded, and here's the impl and extra tags fields.
+%% User authorisation succeeded, and here's the impl and potential 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()}.