Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit 16d9111

Browse files
authored
Merge pull request #69 from rabbitmq/rabbitmq-server-1633
Accept authentication context in user_login_authorization/2
2 parents 051d4d3 + c64f192 commit 16d9111

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rabbit_auth_backend_http.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
-behaviour(rabbit_authz_backend).
2323

2424
-export([description/0, p/1, q/1]).
25-
-export([user_login_authentication/2, user_login_authorization/1,
25+
-export([user_login_authentication/2, user_login_authorization/2,
2626
check_vhost_access/3, check_resource_access/3, check_topic_access/4]).
2727

2828
%% If keepalive connection is closed, retry N times before failing.
@@ -52,8 +52,8 @@ user_login_authentication(Username, AuthProps) ->
5252
Other -> {error, {bad_response, Other}}
5353
end.
5454

55-
user_login_authorization(Username) ->
56-
case user_login_authentication(Username, []) of
55+
user_login_authorization(Username, AuthProps) ->
56+
case user_login_authentication(Username, AuthProps) of
5757
{ok, #auth_user{impl = Impl}} -> {ok, Impl};
5858
Else -> Else
5959
end.

0 commit comments

Comments
 (0)