initial checkin
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 8 Apr 2013 19:14:30 +0000 (15:14 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 8 Apr 2013 19:14:30 +0000 (15:14 -0400)
plstackapi/planetstack/api/auth.py [new file with mode: 0644]

diff --git a/plstackapi/planetstack/api/auth.py b/plstackapi/planetstack/api/auth.py
new file mode 100644 (file)
index 0000000..e204d72
--- /dev/null
@@ -0,0 +1,8 @@
+from plstackapi.openstack.driver import OpenStackDriver
+
+def auth_check(auth):
+    client = OpenStackDriver(username=auth['Username'],
+                             password=auth['AuthString'],
+                             tenant=auth['LoginBase'])
+    client.authenticate()
+    return client