diff options
author | Rafael H. Schloming <rhs@apache.org> | 2010-06-30 14:25:03 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2010-06-30 14:25:03 +0000 |
commit | 929f6ff2138e848c8d906fb623959bde464d9bb3 (patch) | |
tree | 917d4c2575c8e27e62efef736b317d6f55a2b8f0 /python/qpid/sasl.py | |
parent | a6c6bb1a65eef1c758442aae721efdcc463c6cf1 (diff) | |
download | qpid-python-929f6ff2138e848c8d906fb623959bde464d9bb3.tar.gz |
added accessor for auth_username
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959326 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/sasl.py')
-rw-r--r-- | python/qpid/sasl.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/qpid/sasl.py b/python/qpid/sasl.py index 6b00ddaa99..6645903382 100644 --- a/python/qpid/sasl.py +++ b/python/qpid/sasl.py @@ -65,6 +65,9 @@ class WrapperClient: else: raise SASLError(self._cli.getError()) + def auth_username(self): + return self._cli.getUserId() + class PlainClient: def __init__(self): @@ -92,6 +95,9 @@ class PlainClient: def decode(self, bytes): return bytes + def auth_username(self): + return self.attrs.get("username") + try: from saslwrapper import Client as _Client Client = WrapperClient |