diff options
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 |