From a175689418208e1c72d8db03d6b59893c73b2445 Mon Sep 17 00:00:00 2001 From: Pratik Mallya Date: Sun, 12 Apr 2015 22:33:57 -0500 Subject: Accept token and tenant_id for authenticating against KS Allow swiftclient to authenticate against keystone using tenant name/id and token only. Without this patch, the password is required, which may not always be available. Authentication against keystone is required to get the service catalog, which includes the endpoints for swift. Change-Id: I4477af445474c5fa97ff864c4942f1330b59e5d6 Closes-Bug: #1476002 --- swiftclient/client.py | 1 + 1 file changed, 1 insertion(+) (limited to 'swiftclient/client.py') diff --git a/swiftclient/client.py b/swiftclient/client.py index 4819c12..fdd6685 100644 --- a/swiftclient/client.py +++ b/swiftclient/client.py @@ -366,6 +366,7 @@ def get_auth_keystone(auth_url, user, key, os_options, **kwargs): _ksclient = ksclient.Client( username=user, password=key, + token=os_options.get('auth_token'), tenant_name=os_options.get('tenant_name'), tenant_id=os_options.get('tenant_id'), user_id=os_options.get('user_id'), -- cgit v1.2.1