summaryrefslogtreecommitdiff
path: root/src/rabbit_auth_mechanism.erl
diff options
context:
space:
mode:
authorJean-Sebastien Pedron <jean-sebastien@rabbitmq.com>2014-11-26 16:51:47 +0100
committerJean-Sebastien Pedron <jean-sebastien@rabbitmq.com>2014-11-26 16:51:47 +0100
commit77651e4c3fce5a622b3bb74d006fe53bc86b5c01 (patch)
treeb3101e9c79b716c2698ea0f94a9f274e9286fcf8 /src/rabbit_auth_mechanism.erl
parent6373af3300b850c1d4c74ca8e5f8453c3da3eb18 (diff)
downloadrabbitmq-server-77651e4c3fce5a622b3bb74d006fe53bc86b5c01.tar.gz
Update rabbit_auth_mechanism:handle_response() spec to match the change
Diffstat (limited to 'src/rabbit_auth_mechanism.erl')
-rw-r--r--src/rabbit_auth_mechanism.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rabbit_auth_mechanism.erl b/src/rabbit_auth_mechanism.erl
index d11af095..4f771db2 100644
--- a/src/rabbit_auth_mechanism.erl
+++ b/src/rabbit_auth_mechanism.erl
@@ -37,12 +37,15 @@
%% {protocol_error, Msg, Args}
%% Client got the protocol wrong. Log and die.
%% {refused, Msg, Args}
+%% (deprecated) Client failed authentication. Log and die.
+%% {refused, Username, Msg, Args}
%% Client failed authentication. Log and die.
-callback handle_response(binary(), any()) ->
{'ok', rabbit_types:user()} |
{'challenge', binary(), any()} |
{'protocol_error', string(), [any()]} |
- {'refused', string(), [any()]}.
+ {'refused', string(), [any()]} |
+ {'refused', rabbit_types:username() | none, string(), [any()]}.
-else.