Include subclient-ID in the password field when authenticating with token.

This commit is contained in:
2016-05-04 14:08:46 +02:00
parent 312b5816cc
commit 38de7d6433

View File

@@ -60,7 +60,7 @@ class Api(object):
for retrieving the token.
"""
if token:
credentials = "{0}:".format(token)
credentials = "%s:%s" % (token, self.password)
else:
credentials = "%s:%s" % (self.username, self.password)
return base64.b64encode(credentials.encode('utf-8')).decode('utf-8').replace("\n", "")