diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2014-11-13 16:18:20 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2014-11-13 16:18:20 +0000 |
commit | 606e3656008e1ca677e0cde9c3514e24f9ab1468 (patch) | |
tree | ef889c313f6683105d0b93799844180a101e5bc0 /src/rabbit_channel.erl | |
parent | 592c9b0b2dd726a8dc7879f969793eef430eaf5b (diff) | |
download | rabbitmq-server-606e3656008e1ca677e0cde9c3514e24f9ab1468.tar.gz |
Never pass the #user{} record into auth backends, they should only see their own stuff. Get rid of authN_backend, it has little reason for existing. Flatten case of authZ_backend.
Diffstat (limited to 'src/rabbit_channel.erl')
-rw-r--r-- | src/rabbit_channel.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index 2f7e234d..13cc925c 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -581,7 +581,8 @@ check_user_id_header(#'P_basic'{user_id = Username}, #ch{user = #user{username = Username}}) -> ok; check_user_id_header( - #'P_basic'{}, #ch{user = #user{authN_backend = rabbit_auth_backend_dummy}}) -> + #'P_basic'{}, #ch{user = #user{authz_backends = + [{rabbit_auth_backend_dummy, _}]}}) -> ok; check_user_id_header(#'P_basic'{user_id = Claimed}, #ch{user = #user{username = Actual, |