From e8ee8f8cbd0eacf9972e1a7941e34772e22dcab8 Mon Sep 17 00:00:00 2001 From: John Vrbanac Date: Sun, 2 Feb 2014 23:43:12 -0600 Subject: [PATCH] Adding temporary auth config Change-Id: I7ab3777cd4cc5c95345e0f4399e09b565c76fd30 --- cloudcafe/cloudkeep/config.py | 8 ++++++++ configs/cloudkeep/reference.config | 1 + 2 files changed, 9 insertions(+) diff --git a/cloudcafe/cloudkeep/config.py b/cloudcafe/cloudkeep/config.py index 13b417b8..8fa88383 100644 --- a/cloudcafe/cloudkeep/config.py +++ b/cloudcafe/cloudkeep/config.py @@ -15,6 +15,14 @@ limitations under the License. """ from cloudcafe.common.models.configuration import ConfigSectionInterface +from cloudcafe.identity.config import IdentityTokenConfig + + +class CloudKeepAuthConfig(IdentityTokenConfig): + """ Temporary Hack until we can refactor identity in CloudCAFE """ + @property + def auth_type(self): + return str(self.get("auth_type")).lower() class MarshallingConfig(ConfigSectionInterface): diff --git a/configs/cloudkeep/reference.config b/configs/cloudkeep/reference.config index 5d11f06c..1314e45f 100644 --- a/configs/cloudkeep/reference.config +++ b/configs/cloudkeep/reference.config @@ -53,6 +53,7 @@ payload_content_type=application/octet-stream payload_content_encoding=base64 [tokens_api] +auth_type= authentication_endpoint= username= password=