Add method to return the current authenticated username.

This commit is contained in:
Pedro Algarvio 2010-12-22 11:31:30 +00:00
parent 3e0ea26e5f
commit 105cb52cb0
1 changed files with 9 additions and 0 deletions

View File

@ -758,6 +758,15 @@ class Client(object):
"""
return self._daemon_proxy.get_bytes_sent()
def get_auth_user(self):
"""
Returns the current authenticated username.
:returns: the authenticated username
:rtype: str
"""
return self._daemon_proxy.username
def get_auth_level(self):
"""
Returns the authentication level the daemon returned upon authentication.