diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2010-11-10 11:11:27 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2010-11-10 11:11:27 +0000 |
| commit | 145f76c144b495d445d9afd0970c9392fc6d271e (patch) | |
| tree | a8891ac04cf3aaa11f7dbb0fd2cf7b6d9c1adf52 | |
| parent | ef4667da4a760a6376cff26a097451b10570bb16 (diff) | |
| download | rabbitmq-server-git-145f76c144b495d445d9afd0970c9392fc6d271e.tar.gz | |
Add auth_mechanism info key
| -rw-r--r-- | src/rabbit_reader.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl index 907a00a8ea..ceaf9fd21c 100644 --- a/src/rabbit_reader.erl +++ b/src/rabbit_reader.erl @@ -68,7 +68,7 @@ -define(CREATION_EVENT_KEYS, [pid, address, port, peer_address, peer_port, peer_cert_subject, peer_cert_issuer, - peer_cert_validity, + peer_cert_validity, auth_mechanism, protocol, user, vhost, timeout, frame_max, client_properties]). @@ -907,6 +907,10 @@ i(protocol, #v1{connection = #connection{protocol = none}}) -> none; i(protocol, #v1{connection = #connection{protocol = Protocol}}) -> Protocol:version(); +i(auth_mechanism, #v1{auth_mechanism = none}) -> + none; +i(auth_mechanism, #v1{auth_mechanism = Mechanism}) -> + proplists:get_value(name, Mechanism:description()); i(user, #v1{connection = #connection{user = #user{username = Username}}}) -> Username; i(user, #v1{connection = #connection{user = none}}) -> |
