From 5f7abe01abe493719499c59c547bef659a2b5b06 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 8 Apr 2013 15:14:30 -0400 Subject: [PATCH] initial checkin --- plstackapi/planetstack/api/auth.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 plstackapi/planetstack/api/auth.py diff --git a/plstackapi/planetstack/api/auth.py b/plstackapi/planetstack/api/auth.py new file mode 100644 index 0000000..e204d72 --- /dev/null +++ b/plstackapi/planetstack/api/auth.py @@ -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 -- 2.47.0