commit | 5f7abe01abe493719499c59c547bef659a2b5b06 | [log] [tgz] |
---|---|---|
author | Tony Mack <tmack@paris.CS.Princeton.EDU> | Mon Apr 08 15:14:30 2013 -0400 |
committer | Tony Mack <tmack@paris.CS.Princeton.EDU> | Mon Apr 08 15:14:30 2013 -0400 |
tree | 946e7dd5d9bc6dac8d043eab94e34f04fdafa7be | |
parent | 1e09659c99b6081b6950a0482a2b3063285735df [diff] |
initial checkin
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