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 | be80ea2ee62801e68b96ec75deeb0227d34b9211 (patch) | |
| tree | 917d4c2575c8e27e62efef736b317d6f55a2b8f0 /python/qpid/sasl.py | |
| parent | 7cee282f2d24ac315e76081f02a8825b1e63648f (diff) | |
| download | qpid-python-be80ea2ee62801e68b96ec75deeb0227d34b9211.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 |
