0c4f6d8ae2a2426c866993075561f4bee3941304
[plstackapi.git] / plstackapi / core / api / auth.py
1 from django.contrib.auth import authenticate
2 from plstackapi.openstack.manager import OpenStackManager
3
4 def auth_check(username, password, tenant):
5     client = OpenStackClient(username=username,
6                              password=password,
7                              tenant=tenant)
8     client.authenticate()
9     return client